-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathsocial-naive.setl.ttl
More file actions
39 lines (35 loc) · 1.12 KB
/
social-naive.setl.ttl
File metadata and controls
39 lines (35 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix void: <http://rdfs.org/ns/void#> .
@prefix setl: <http://purl.org/twc/vocab/setl/> .
@prefix csvw: <http://www.w3.org/ns/csvw#> .
@prefix pv: <http://purl.org/net/provenance/ns#> .
@prefix : <http://example.com/setl/> .
:table a csvw:Table, setl:Table;
csvw:delimiter ",";
prov:wasGeneratedBy [
a setl:Extract;
prov:used <social.csv>;
].
<http://example.com/social> a void:Dataset;
prov:wasGeneratedBy [
a setl:Transform, setl:JSLDT;
prov:used :table;
setl:hasContext '''{
"@vocab" : "http://example.com/ns/"
}''';
prov:value '''[{
"@for" : "p, o in row.iteritems()",
"@do" : {
"@if" : "not isempty(o)",
"@id" : "https://example.com/social/{{name}}",
"http://example.com/ns/{{p}}" : "{{o}}"
}
}]'''].
<social-naive.ttl> a pv:File;
dcterms:format "text/turtle";
prov:wasGeneratedBy [
a setl:Load;
prov:used <http://example.com/social> ;
].