Add new property + first SPARQL query
This commit is contained in:
parent
3762eead8c
commit
a8cbc86df3
|
@ -10,6 +10,7 @@
|
|||
foaf:givenName "Tatsumi"^^xsd:string .
|
||||
|
||||
:Wii rdf:type :GameConsole .
|
||||
:Wii :madeBy :Nintendo .
|
||||
|
||||
:Nintendo rdf:type foaf:Organization ;
|
||||
:ceo :Kimishima ;
|
||||
|
@ -22,9 +23,11 @@
|
|||
:numOfSupportedControllers 8 ;
|
||||
:predecessorOfConsole :Wii ;
|
||||
:releaseYear 2012 ;
|
||||
:madeBy :Nintendo ;
|
||||
:successorOfConsole :Switch .
|
||||
|
||||
:Switch rdf:type :PortableGameConsole .
|
||||
:Switch :madeBy :Nintendo
|
||||
:Switch rev:hasReview :SwitchReviewByJPT .
|
||||
|
||||
:JPT rdf:type foaf:Person ;
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
# Common prefixes across all queries
|
||||
PREFIX : <http://example.com/ins_uebung/#>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||
PREFIX rev: <http://purl.org/stuff/rev#>
|
||||
|
||||
# How many consoles did nintendo produce?
|
||||
SELECT COUNT(?console) AS ?numConsoles
|
||||
WHERE {
|
||||
?console :madeBy ?organization .
|
||||
}
|
||||
GROUP BY ?organization
|
||||
|
|
@ -42,6 +42,11 @@
|
|||
rdfs:domain :GameConsole ;
|
||||
rdfs:range xsd:int .
|
||||
|
||||
:madeBy rdf:type rdf:Property ;
|
||||
rdfs:domain :GameConsole ;
|
||||
rdfs:range foaf:Organization .
|
||||
|
||||
|
||||
# rdfs:Datatype
|
||||
:PriceEur rdf:type rdfs:Datatype .
|
||||
:PriceEur rdfs:label "Preis in Euro"^^xsd:string .
|
||||
|
|
Loading…
Reference in New Issue