Presentation is loading. Please wait.

Presentation is loading. Please wait.

Semantic Web Exam 1 Review.

Similar presentations


Presentation on theme: "Semantic Web Exam 1 Review."— Presentation transcript:

1 Semantic Web Exam 1 Review

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

3 URI Jargon Summary soap://www.visa.com/CreditCardService# URI Context
URISchemeName:schemeSpecificPart Scheme Name Scheme Specifics Part soap:// 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

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

6 RDF & RDF/XML Verbs (properties) defined in RDF Reading RDF/XML
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 Transitive relationships
Emphasis on: subClassOf and subPropertyOf domain and range Transitive relationships

9 RDF/RDFS Example Creation-date is a property. (Makes a triple)
<?xml version="1.0"?> <!DOCTYPE rdf:RDF [<!ENTITY exterms " <rdf:RDF xmlns:rdf=" xmlns:dc=" xmlns:exterms=" xmlns:other="uri:"> <rdfs:Property rdf:about="&exterms;creation-date"> <rdf:Description rdf:about=" <exterms:creation-date>August 16, 1999</exterms:creation-date> <dc:language>en</dc:language> <dc:creator rdf:resource=" </rdf:Description> <rdf:Statement> <rdf:subject rdf:resource=" <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 Blank node handling and meaning
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 For patterns presented
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 Architectural pattern Design Pattern Idiom Factory Method Singleton Object Pool Composite Decorator Observer Strategy Template Method

13 Ontologies VCARD Dublin Core FOAF
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


Download ppt "Semantic Web Exam 1 Review."

Similar presentations


Ads by Google