-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfunctioncitation.tarql.template
47 lines (42 loc) · 1.3 KB
/
functioncitation.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 xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX hito: <http://hitontology.eu/ontology/>
CONSTRUCT
{
?citation a hito:EnterpriseFunctionCitation;
rdfs:comment ?co;
rdfs:label ?len;
rdfs:label ?lde.
?product hito:spSupportsEfCit ?citation.
}
FROM <file:../functioncitation.csv>
WHERE
{
BIND (URI(CONCAT(tarql:expandPrefix('hito'),"{SUB}Func",?uri)) AS ?citation)
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}")) AS ?product)
}
CONSTRUCT
{
?citation hito:efCitClassifiedAs ?w.
}
FROM <file:../functioncitation.csv>
WHERE
{
BIND (URI(CONCAT(tarql:expandPrefix('hito'),"{SUB}Func",?uri)) AS ?citation)
?who apf:strSplit (?whodhiuri ";")
BIND (URI(CONCAT(tarql:expandPrefix('hito'),?who)) AS ?w)
}
CONSTRUCT
{
?citation hito:efCitClassifiedAs ?b.
}
FROM <file:../functioncitation.csv>
WHERE
{
BIND (URI(CONCAT(tarql:expandPrefix('hito'),"{SUB}Func",?uri)) AS ?citation)
?bb apf:strSplit (?bburi ";")
BIND (URI(CONCAT(tarql:expandPrefix('hito'),?bb)) AS ?b)
}