Ivan Herman, World Wide Web Consortium
Beijing, China, 28 April 2006
Slides of the presentation held in Beijing, China, on the 28 April 2006, as part of the two days’ event celebrating the opening of the W3C Chinese Office.
<foo:creator>
same as
<bar:author>
?http://www.example.org/myCalendar
(http://www.ivan-herman.net, http://…/myCalendar, http://…/calendar)
http://www.example.org/file.xml#xpointer(id('calendar'))
http://www.example.org/file.html#calendar
<rdf:Description rdf:about="http://.../membership.svg#FullSlide"> <axsvg:graphicsType>Chart</axsvg:graphicsType> <axsvg:labelledBy rdf:resource="http://...#BottomLegend"/> <axsvg:chartType>Line</axsvg:chartType> </rdf:Description>
<http://.../membership.svg#FullSlide> axsvg:graphicsType "Chart"; axsvg:labelledBy <http://...#BottomLegend>; axsvg:chartType "Line".
Chart
, labelledBy
, isAnchor
,
...chartType
, graphicsType
, ...rdfs:Resource
, rdfs:Class
as
nodes; rdf:type
, rdfs:subClassOf
as properties
animal-schema.rdf
(“application’s data
types”):<rdf:Description rdf:ID="Dolphin">
<rdf:type rdf:resource=
"http://www.w3.org/2000/01/rdf-schema#Class"/>
</rdf:Description>
<rdf:Description rdf:about="#Flipper">
<rdf:type rdf:resource="animal-schema.rdf#Dolphin"/>
</rdf:Description>
(#Flipper rdf:type #Mammal)
If:
uuu rdfs:subClassOf xxx .
vvv rdf:type uuu .
Then add:
vvv rdf:type xxx .
rdf:Property
)
xml:lang
)In RDF/XML
<rdf:Description rdf:about="#Flipper">
<animal:is_TV_Star
rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">
True
</animal:is_TV_Star>
</rdf:Description/>
In Turtle
:Flipper
animal:is_TV_Star "True"^^<http://www.w3.org/2001/XMLSchema#boolean>.
triples = graph.triples((Resource,Property,None))
(Resource,Property)
SELECT ?cat ?val # note: not ?x!
WHERE { ?x rdf:value ?val. ?x category ?cat }
[["Total Members",100],["Total
Members",200],…,["Full Members",10],…]
Class
and
Thing
to differentiate the classes from
individuals
<owl:Class rdf:ID="MarineMammal">
<owl:unionOf rdf:parseType="Collection">
<owl:Class rdf:about="#Dolphin"/>
<owl:Class rdf:about="#Orca"/>
<owl:Class rdf:about="#Whale"/>
…
</owl:unionOf>
</owl:Class>
:Dolphin rdf:type owl:Class.
:Orca rdf:type owl:Class.
:Whale rdf:type owl:Class.
:MarineMammal rdf:type owlClass;
owl:unionOf (:Dolphin, :Orca, :Whale).
complementOf
,
intersectionOf
// create a model (a.k.a. Triple Store)
Model model = new ModelMem();
Resource subject = model.createResource("URI_of_Subject")
// 'in' refers to the input file
model.read(new InputStreamReader(in));
StmtIterator iter = model.listStatements(subject,null,null);
while(iter.hasNext()) {
st = iter.next();
p = st.getProperty();
o = st.getObject();
do_something(p,o);
}
(from the RDF Semantics Glossary)
(from UK Archival Thesaurus)