Skip to content

Instantly share code, notes, and snippets.

@blokhin
Created January 18, 2020 23:51
Show Gist options
  • Save blokhin/8cd0470787845510da2426baed5c0808 to your computer and use it in GitHub Desktop.
Save blokhin/8cd0470787845510da2426baed5c0808 to your computer and use it in GitHub Desktop.
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?label
WHERE { <http://dbpedia.org/resource/Asturias> rdfs:label ?label }
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX dbres: <http://dbpedia.org/resource/>
DESCRIBE dbres:Curie-Weiss_law
SELECT ?dbr WHERE { ?dbr foaf:isPrimaryTopicOf <http://en.wikipedia.org/wiki/Curie–Weiss_law> }
prefix fhkb: <http://www.example.com/genealogy.owl#>
prefix owl: <http://www.w3.org/2002/07/owl#>
SELECT ?one ?two WHERE { ?one fhkb:hasGreatGrandfather ?two }
PREFIX matinf: <http://worldmaterials.pro/>
SELECT (COUNT(DISTINCT ?x) AS ?count) WHERE { ?x rdf:ID ?y }
PREFIX matinf: <http://worldmaterials.pro/>
SELECT ?x ?y WHERE { ?i matinf:hasProp ?x . ?i matinf:hasVal ?y }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment