SPARQL endpoint:


Collapse

Sample


1. Find the person who is a woman and has the son, Jesus.

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX : <http://mannam.cc/Ontology/bibleworld.owl#>
SELECT ?name
WHERE {
?name :hasSon :Jesus .
?name rdf:type :Woman .
}

2. Find the father of Noah and the age of his death.

PREFIX : <http://mannam.cc/Ontology/bibleworld.owl#>
SELECT ?name ?age
WHERE {
:Noah :hasFather ?name .
OPTIONAL { ?name :isDeadAtTheAge ?age . }
}

3. Find the people who aged more than or equal to 900.

PREFIX : <http://mannam.cc/Ontology/bibleworld.owl#>
SELECT ?name ?age
WHERE {
?name :isDeadAtTheAge ?age .
FILTER ( ?age >= 900 )
}
ORDER BY DESC ( ?age )