Skip to content

Commit ba132b4

Browse files
committed
Fixed default queries
1 parent af1230c commit ba132b4

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

src/main/resources/default-attributes.rq

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ WHERE {
1212
# Everything that is a skos:Concept is an attribute by default
1313
UNION
1414
{
15-
?subject ?attribute ?concept .
16-
?concept a skos:Concept .
15+
?subject ?attribute ?value .
16+
?value a skos:Concept .
1717
}
1818
}
Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
11
# Default edges query
2-
# Selects all the triples in the graph
2+
# Selects all the triples in the graph relating 2 IRIs that are not skos:Concepts
3+
# (skos:Concepts are considered attributes)
4+
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
5+
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
36
SELECT ?subject ?edge ?object
47
WHERE {
58
?subject ?edge ?object .
9+
FILTER(
10+
?edge != rdf:type
11+
&&
12+
isIRI(?object)
13+
&&
14+
isIRI(?subject)
15+
)
16+
FILTER NOT EXISTS {
17+
?object a skos:Concept .
18+
}
19+
FILTER NOT EXISTS {
20+
?subject a skos:Concept .
21+
}
622
}

0 commit comments

Comments
 (0)