Skip to content

Instantly share code, notes, and snippets.

View jaw111's full-sized avatar

John Walker jaw111

  • Semaku
  • Eindhoven
View GitHub Profile
#List of RDF classes and for each, the number of instances
#Liste des classes RDF et pour chacune, le nombre d'instances
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX dgfr: <http://colin.maudry.com/ontologies/dgfr#>
select distinct ?class (count(?thing) as ?numInstances) where {
graph <http://www.data.maudry.com> {
@jaw111
jaw111 / example.ttl
Last active June 25, 2022 13:29 — forked from pchampin/example.ttl
RDF-star "ocurrence" pattern vs. Schema.org "role" pattern vs. PROV-O "qualification" pattern
@prefix s: <http://schema.org/>.
@prefix prov: <http://www.w3.org/ns/prov#>.
# simple (unqualified) statement
:dr_strangelove a s:Movie ;
s:actor :peter_sellers.
# RDF-star with "ocurrence" nodes