Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Some useful SPARQL queries.

# Returns every resource of one or more specified types in the loan namespace along with their selected annotations. 

SELECT ?Resource ?Type ?Def ?ExpNote ?EdNote ?UseNote ?NormRef
WHERE { ?Resource rdf:type ?Type .
FILTER(?Type in (owl:Class, owl:DatatypeProperty,owl:ObjectProperty ))
OPTIONAL { ?Resource skos:definition ?Def. }
OPTIONAL { ?Resource skos:editorialNote ?EdNote. }
OPTIONAL { ?Resource sm:normativeReference ?NormRef. }
OPTIONAL { ?Resource fibo-fnd-utl-av:usageNote ?UseNote. }
OPTIONAL { ?Resource fibo-fnd-utl-av:explanatoryNote ?ExpNote. }
FILTER(STRSTARTS(STR(?Resource),
                                  "http://spec.edmcouncil.org/fibo/LOAN/LoanContracts/LoanCore/") )}

ORDER BY ?Type ?Resource