Debian Codegraph @

Tests/lubm-univ-bench-sparql-load-and-query-test.sparql

raw
1 # requires Konclude compliled with Redland RDF Libraries since the files are serialized with RDF Turtle
2 LOAD <file:Tests/lubm-univ-bench.owl.xml>
3 LOAD <file:Tests/lubm-univ-bench-data-1.ttl>
4
5
6 # remove the comment of the following line to ensure that Konclude preprocessed the ontology such that query processing can directly be started (otherwise Konclude will preprocess the ontology lazily for the first query)
7 #PREPARE
8
9
10
11 # LUBM Query9
12 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
13 PREFIX ub: <http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#>
14 SELECT ?X
15 WHERE
16 {
17 ?X rdf:type ub:Student .
18 ?Y rdf:type ub:Faculty .
19 ?Z rdf:type ub:Course .
20 ?X ub:advisor ?Y .
21 ?Y ub:teacherOf ?Z .
22 ?X ub:takesCourse ?Z .
23 }