Last active
January 23, 2018 16:06
-
-
Save capJavert/b37e0a2db990930f1f2c9a99f5151c35 to your computer and use it in GitHub Desktop.
SPARQL queries for https://gist.github.com/capJavert/d18f1385c251b0e01dd7325d3571b95a
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# all Items that belong to Characters | |
PREFIX rpg: <http://www.semanticweb.org/javert/ontologies/2017/10/dungeons-and-dragons#> | |
SELECT ?Character ?Item | |
WHERE { ?Character rpg:hasItem ?Item } | |
# all Characters that know Healing Spells | |
PREFIX rpg: <http://www.semanticweb.org/javert/ontologies/2017/10/dungeons-and-dragons#> | |
SELECT ?Character ?Spell | |
WHERE { ?Character rpg:knowsSpell ?Spell . | |
?Spell rdf:type rpg:Healing } | |
# all Weapon Items durability | |
PREFIX rpg: <http://www.semanticweb.org/javert/ontologies/2017/10/dungeons-and-dragons#> | |
SELECT ?Item ?Durability | |
WHERE { ?Item rdf:type ?Type . | |
?Type rdfs:subClassOf rpg:Weapon . | |
?Item rpg:durability ?Durability } | |
# all Characters that speak Elvish Language and have more then 5000 experience | |
# in short all experienced characters | |
PREFIX rpg: <http://www.semanticweb.org/javert/ontologies/2017/10/dungeons-and-dragons#> | |
SELECT ?Character ?Language ?Exp | |
WHERE { ?Character rpg:speaksLanguage ?Language . | |
?Language rdf:type rpg:ElvishLanguage . | |
?Character rpg:experience ?Exp; FILTER (?Exp > 5000)} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment