Advertisement
Armandobs14

Retrieve ontologies from sparql endpoint

Apr 15th, 2016
2,928
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SPARQL 0.27 KB | None | 0 0
  1. SELECT DISTINCT ?onto ?domain ?prop ?range
  2. WHERE{
  3. ?onto a owl:Ontology.
  4. VALUES ?propType {owl:ObjectProperty owl:DatatypeProperty}
  5. ?prop a ?propType; rdfs:domain ?domain; rdfs:range ?range.
  6. FILTER(CONTAINS(STR(?prop),STR(?onto)))
  7. }
  8. GROUP BY ?onto
  9. ORDER BY ?onto
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement