Presentation is loading. Please wait.

Presentation is loading. Please wait.

CSE 428 Semantic Web Topics RDF Jeff Heflin Lehigh University.

Similar presentations


Presentation on theme: "CSE 428 Semantic Web Topics RDF Jeff Heflin Lehigh University."— Presentation transcript:

1 CSE 428 Semantic Web Topics RDF Jeff Heflin Lehigh University

2 Turtle vs. RDF/XML Turtle: @prefix rdf:. @prefix foaf:. foaf:name "Jane Doe" ; foaf:knows http://www.yahoo.com/~jsmith#john. RDF/XML: Jane Doe

3 Default Namespaces Jane Doe

4 Using XML Entities <!DOCTYPE rdf:RDF [ ] > <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:foaf="http://xmlns.com/foaf/0.1/" > 30 Resolves to: http://www.w3.org/2001/XMLSchema#integer

5 Nesting Descriptions Jane Doe John Smith

6 Typed Nodes in RDF/XML <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:foaf="http://xmlns.com/foaf/0.1/"> Jane Doe Jane is an instance of Person <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:foaf="http://xmlns.com/foaf/0.1/"> Jane Doe Shorthand for the same thing

7 RDFa <html xmlns="http://www.w3.org/1999/xhtml" prefix="bibo: http://purl.org/ontology/bibo/ dc: http://purl.org/dc/terms/" > Books by Marco Pierre White I think White's book '<span about="urn:ISBN:0091808189" typeof="bibo:Book" property="dc:title">Canteen Cuisine ' is well worth getting since although it's quite advanced stuff, he makes it pretty easy to follow. You might also like <span about="urn:ISBN:1596913614" typeof="bibo:Book" property="dc:description" >White's autobiography. Declare namespace prefixes This item is of type Book, and has title “Canteen Cuisine” This item is of type Book, and has description “White’s autobiography” Example from http://www.w3.org/TR/rdfa-syntax/

8 RDF Schema Example <rdf:RDF xml:base="http://example.org/univ-ont#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:univ="http://example.org/univ-ont#"> teaches Course Professor heflincse428 rdf:Property teaches rdf:type rdfs:domain rdfs:range


Download ppt "CSE 428 Semantic Web Topics RDF Jeff Heflin Lehigh University."

Similar presentations


Ads by Google