1 / 14

Semantic Web

This review agenda covers topics such as URI, XML, RDF, RDF/XML, RDFS, SPARQL, reification, design patterns, and more. It also includes examples and exercises.

Download Presentation

Semantic Web

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Semantic Web Exam 1 Review

  2. Agenda • URI • XML • RDF • RDF/XML • RDFS • SPARQL • Reification • Design Patterns

  3. soap://www.visa.com/CreditCardService# URI Jargon Summary URI Context URISchemeName:schemeSpecificPart Scheme Name Scheme Specifics Part QName XMLNS Context Qualified Name (QName) – as text macro for entity and attribute names !ENTITY Context Text macro for attribute values (dereference with &;)

  4. URI Jargon Summary Valid URI Examples URISchemeName:schemeSpecificPart urn:monterey#1 sc:johnny http://utdallas/semclass#

  5. XML structure • XMLNS scope and effect • !ENTITY usage • Entity, attribute, content • Reading RDF/XML

  6. RDF & RDF/XML • Verbs (properties) defined in RDF • Usage and meaning • Reading RDF/XML • How many triples? • What graph structure? • Classes, properties, and short-cuts • Limitations of RDF and RDF/XML for semantic web needs • Writing RDF/XML statements • Point to a literal • Point to an existing resource (i.e. rdf:resource)

  7. RDF & RDF/XML • Draw graph from RDF/XML and N3 data • Resources as circles/ellipses and literals as boxes. • Short labels in each shape and on lines • Bring a pencil if you have trouble making figures with pen • Note that containers include a rdf:type node and use _1, _2, etc • Collections do not use a type node and use ‘first’, ‘rest’, and nil

  8. RDFS • Verbs (properties) defined in RDFS • Emphasis on: • subClassOf and subPropertyOf • domain and range • Transitive relationships

  9. RDF/RDFS Example <?xml version="1.0"?> <!DOCTYPE rdf:RDF [<!ENTITY exterms " http://www.example.org/terms/">]> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:exterms="http://www.example.org/terms/" xmlns:other="uri:"> <rdfs:Property rdf:about="&exterms;creation-date"> <rdf:Description rdf:about="http://www.example.org/index.html"> <exterms:creation-date>August 16, 1999</exterms:creation-date> <dc:language>en</dc:language> <dc:creator rdf:resource="http://www.example.org/staffid/85740"/> </rdf:Description> <rdf:Statement> <rdf:subject rdf:resource=" http://www.example.org/index.html"/> <rdf:predicate rdf:resource=“&exterms;creation-date"/> <rdf:object>August 16, 1999</rdf:object> <dc:creator>"Stewart"</dc:creator> <other:creatorConfidenceInFact>"95%"</other:creatorConfidenceInFact> </rdf:Statement> </rdf:RDF> Creation-date is a property. (Makes a triple) This “Statement” (i.e. reification) is a blank node Stewart claims he knew the creation date and his confidence in it.

  10. SPARQL • Writing SPARQL SELECT queries • Query for all triples • Blank node handling and meaning • Handling containers - Query for one or more specific elements off the container (hint: use UNION) • Text macros • BASE, PREFIX • Handling containers and collections • Named Graphs and default graph • Use of UNION Especially consider Sparql_PopQuizAndInClassLab.ppt

  11. Reification • Meaning of reification • Reification class type and required properties • Meaning of metadata from reification node • Meaning of multiple reification nodes

  12. Design Patterns • Pattern Categories • Architectural vs Design vs Idioms • For patterns presented • The need for the pattern • The foundational idea of the pattern • Specifically info in Lecture 4 –SubsetOfHeadsUpPatterns.ppt

  13. Ontologies • VCARD • For personal business cards (pretty much contact info) • Dublin Core • For basic metadata – creators, dates, scope of creations/entities • FOAF • For friendships, working relationships to others, organizations, and groups

  14. Not covering • New material presented from Ch 10 and 11 (i.e. OWL) • New material presented in Ontology Design 101 • Jena specifics • UML and Lecture 6 design patterns

More Related