-
Notifications
You must be signed in to change notification settings - Fork 1
/
standard.tarql.template
47 lines (44 loc) · 1.51 KB
/
standard.tarql.template
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
40
41
42
43
44
45
46
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX hito: <http://hitontology.eu/ontology/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX bb: <http://www.snik.eu/ontology/bb/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
CONSTRUCT
{
?s a hito:Interoperability;
rdfs:comment ?co;
hito:internalId ?num;
owl:sameAs ?dbpediaUri;
rdfs:seeAlso ?p;
hito:subStandardOf ?super;
rdfs:label ?len;
rdfs:label ?lde.
}
FROM <file:../standard.csv>
WHERE
{
BIND (URI(CONCAT(tarql:expandPrefix('hito'),?uri)) AS ?s)
BIND (IF(?comment != '', STRLANG(?comment,"en"), ?nothing) AS ?co)
BIND (IF(?en != '', STRLANG(?en,"en"), ?nothing) AS ?len)
BIND (IF(?de != '', STRLANG(?de,"de"), ?nothing) AS ?lde)
BIND (URI(CONCAT(tarql:expandPrefix('hito'),"{SUB}FunctionCatalogue")) AS ?cat)
BIND (IF(BOUND(?n)&&(?n != ''), ?n, ?nothing) AS ?num)
BIND (IF(BOUND(?paper)&&(?paper != ''), URI(?paper), ?nothing) AS ?p)
BIND (IF(BOUND(?superstandard)&&(?superstandard != ''), URI(?superstandard), ?nothing) AS ?super)
#BIND (IF(BOUND(?dbpedia)&&(?dbpedia != ''), URI(tarql:expandPrefixedName(?dbpedia)), ?nothing) AS ?dbpediaUri)
BIND(URI(?dbpedia) AS ?dbpediaUri)
}
CONSTRUCT
{
?f dcterms:source ?source.
}
FROM <file:../standard.csv>
WHERE
{
BIND (URI(CONCAT(tarql:expandPrefix('hito'),?uri)) AS ?f)
?dct apf:strSplit (?dctsource ";")
BIND (URI(?dct) AS ?source)
}