Advertisement
Guest User

Untitled

a guest
Sep 19th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SPARQL 0.55 KB | None | 0 0
  1. SELECT DISTINCT ?instance ?instanceType WHERE {
  2.     ?instance emf:instanceType "objectinstance" .
  3.     ?instance emf:isDeleted "false"^^xsd:boolean .
  4.     ?instance a emf:ClassDescription.
  5.     ?instance emf:isPartOfObjectLibrary "true"^^xsd:boolean.
  6.     OPTIONAL{
  7.         ?instance dcterms:title ?title .
  8.         FILTER(LANG(?searchTitle) = ?LANG)
  9.     }
  10.     OPTIONAL {
  11.         ?instance dcterms:title ?title_en .
  12.         FILTER(LANG(?title_en) = "en")
  13.     }
  14.     BIND(IF(BOUND(?title), LCASE(?title), LCASE(?title_en)) AS ?title_)
  15. } ORDER BY ?title_
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement