Introduction to RDF Jonathan Borden The Open Healthcare Group the “Resource Description Framework”
RDF SubjectObject predicate
WWW c. 1989
Model zA model is a collection of statements zStatement := (predicate,subject,object) zPredicate is a resource zSubject is a resource zObject is either a resource or a literal
Resource zFrom RFC 2396: zResource A resource can be anything that has identity. Familiar examples include an electronic document, an image, a service (e.g., "today's weather report for Los Angeles"), and a collection of other resources. Not all resources are network "retrievable"; e.g., human beings, corporations, and bound books in a library can also be considered resources. The resource is the conceptual mapping to an entity or set of entities, not necessarily the entity which corresponds to that mapping at any particular instance in time. Thus, a resource can remain constant even when its content---the entities to which it currently corresponds---changes over time, provided that the conceptual mapping is not changed in the process.
Resource zA resource is defined by a URI zThe resource identified by a URI may be abstract - I.e. not network retrievable zhttp://
Edge Labeled Directed Graphs foo bar baz bop bing isa has wants plays (isa, foo, bar) (has, bar, baz) (plays, baz, bop) (wants, baz, bing)
Node labeled Directed Graph root foo bar baz href x y x z element attribute aaa 1 3
RDF is... A standard syntax to represent (edge labeled) directed graphs in XML
Semantic Networks zA way to represent natural language circa 1970s zA format for organizing statements in a way that can be queries by computers
Semantic Networks vertebrate mammal bird canaryostrich heart spine hair fly wings walk doesn’t fly yellow isa has can freddiehugo isa
Semantic Networks z“Can freddy fly?” z“Does hugo have wings?” z“Does freddy have a spine?” z“Of all the canaries, how many live in cages?”
RDF Schemas zSemantic networks on the Web zNodes are identified by URIs zrdfs:Class zrdfs:Property zrdfs:subClassOf zrdf:type
Simplified Healthcare Schema
Simplified Healthcare Schema
Healthcare Schema
Describing things with RDF Jonathan Borden An XSLT based parser which converts an arbitrary XML document into RDF Statements
Describing things with RDF An XSLT based... Jonathan Borden description author
RDF Statements Jonathan Borden
RSS: RDF Typed nodes XML.com XML.com features a rich mix of information and services for the XML community.
Typed nodes rss:channel Class subClassOf type rss:title Property xml.com title type domain
Rich/RDF Site Summary 1.0 Processing Inclusions with XSLT Processing document inclusions with general XML tools can be problematic. This article proposes a way of preserving inclusion information through SAX-based processing.
Warning!! Slightly advanced topics ahead. This is your last chance to exit.
Extracting RDF from Colloquial XML zrdfExtractify.xsl zID and about name subject nodes zrdf:resource names object nodes zUsing XPointer to name anonymous nodes
‘Colloquial XML’ Jonathan Borden <provider...
RDF Graph: ‘anonymous’ nodes Person12345 Jonathan Borden person.name first last value PersonName Literal Person
Using XPointer to name Person12345 /1/1 /1/1/1 /1/1/2 Jonathan Borden person.name first last value PersonName Literal Person
RDF zModel, XML Syntax and Schema zA semantic metadata framework zEverything has a URI