dbpedia:Milan
rdfs:label "Milan", "Milano"@it;
dbpedia-owl:elevation "120"^^xsd:float;
ex:location "45.465454,9.186516"^^ex:latlong
dbpedia-owl:leaderName dbpedia:Giuliano_Pisapia.
dbpedia:Giuliano_Pisapia
dbpedia-owl:birthDate 1949-05-20^^xsd:date.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
dbpedia:The_Wachowskis a rdf:Bag;
rdf:li "Andy Wachowski", "Lana Wachowski".
ex:The_Matrix_Trilogy a rdf:Seq ;
rdf:_1 dbpedia:The_Matrix ;
rdf:_2 dbpedia:The_Matrix_Reloaded;
rdf:_3 dbpedia:The_Matrix_Revolutions.
@prefix s: <http://example.org/students/vocab#> .
@prefix sl: <http://example.org/students/> .
@prefix c: <http://example.org/courses/> .
c:6.001 s:students ( sl:Amy sl:Mohamed sl:Johann ) .
Sources: Tommaso di Noia,
http://www.w3.org/TR/2004/REC-rdf-primer-20040210/#containers
Source: http://tinyurl.com/qdueje8
http://www.example.com/path/to/resource
http://dbpedia.org/page/Bologna
http://dbpedia.org/ontology/birthPlace
http://dbpedia.org/page/Luigi_Galvani
(i.e., to know about the property, see next slide)
<http://www.w3.org/People/Berners-Lee> contact:office _:bn-off .
_:bn-off
contact:address _:bn-add ;
contact:phone <tel:+1-617-253-5702> .
_:bn-add
contact:city "Cambridge" ;
contact:country "USA" ;
contact:postalCode "02139" ;
contact:street "32 Vassar Street" .
Out of curiosity, N3, Turtle, N-Triples are similar (http://tinyurl.com/q35qdd6)
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix ex: <http://example.com/>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
ex:result-1898_1
a rdf:Statement;
rdf:subject ex:bio-sample-1898;
rdf:predicate ex:detected-gene;
rdf:object "P53".
# Now we can talk about the statement itself
ex:result-1898_1
ex:probability "0.98"^^xsd:double;
ex:part-of ex:experiment-2900.
source: Tommaso Di Noia
When are they useful?
<http://dbpedia.org/resource/The_Matrix>
<http://dbpedia.org/ontology/starring>
<http://dbpedia.org/resource/Keanu_Reeves> .
<http://dbpedia.org/resource/The_Matrix>
<http://www.w3.org/2000/01/rdf-schema#label> "The Matrix".
<http://dbpedia.org/resource/Keanu_Reeves>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://dbpedia.org/class/yago/Actor109765278>.
It's not so different than TTL
Might attract web geeks and alike, boost "LODization"
Prefixes are arbitrary and scoped within the "document", though there are common ones
MongoDB and alike might be useful for LOD
<http://www.w3.org/People/Berners-Lee>
contact:office [
contact:phone <tel:+1-617-253-5702>;
contact:address [
contact:city "Cambridge" ;
contact:country "USA" ;
contact:postalCode "02139" ;
contact:street "32 Vassar Street"
]
].
dbp: is a shorthand for
http://dbpedia.org/resource/
_:1
You can still use explicit forms
@prefix dbp: <http://dbpedia.org/resource/>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix dbp-owl: <http://dbpedia.org/ontology/>.
dbp:The_Matrix dbp:starring dbp:Keanu_Reeves.
dbp:The_Matrix dbp-owl:runtime 8160.
dbp:The_Matrix rdfs:label "The Matrix".
dbp:Keanu_Reeves rdf:type
<http://dbpedia.org/class/yago/Actor109765278>.
dbp:The_Matrix a http://dbpedia.org/ontology/Film
_:2
Most of software define
internal identifiers
No <>, no "", no number or
other scalar => it's invalid
source: Tommaso di Noia
http://rdf.ebi.ac.uk/resource/biosamples/sample/SAMEA1904958
Browser -> HTML
curl --location-trusted -H "Accept: application/rdf+xml" \
'http://rdf.ebi.ac.uk/resource/biosamples/sample/SAMEA1904958'
-> RDF in XML format
x a Y, a is equivalent to rdf:type, which is equivalent to...
http://dbpedia.org/ontology/wikiPageID
2106933
In the LOD context, Open+Linked+Blank Nodes don't play very well
what if I want to refer to the address of TBL in data set 1, from DS2?
many LOD projects don't use them (e.g., Bio2RDF, DBPedia)
Ambiguity and performance issues in RDF data querying (http://goo.gl/hZwldX):
Every good computer language
has comments. Which are often used too little..
Returns {}
Makes sense, but RDF doesn't specify that different blank nodes should have different identifiers
SELECT DISTINCT ?x ?y
WHERE {
?x :has-child ?xc.
?y :has-child ?yc.
FILTER ( ?xc != ?yc )
}
:John :has-child [ :name "Lucy" ].
:Beth :has-child [ :name "Lucy" ].
:John :married-to :Beth
Typically translated to (for pratical/performance-related reasons):
:John :has-child _:b1.
:Beth :has-child _:b2.
...
# Namespaces omitted, imagine they're here
# Statements about the same subject
dbp:The_Matrix
dbp:starring dbp:Keanu_Reeves;
rdfs:label "The Matrix";
dbp-owl:runtime 8160.
# Same subject and same predicate
dbp:Keanu_Reeves
a yago:Actor109765278;
rdfs:label "Ривз, Киану"@ru, "Keanu Reaves".
String values can have a language attached
The "," works for any kind of values