1 / 16

The Semantic Web – WEEK 5: RDF Schema + Ontologies

The Semantic Web – WEEK 5: RDF Schema + Ontologies. The “Layer Cake” Model – [From Rector & Horrocks Semantic Web cuurse]. Recap.

urbain
Download Presentation

The Semantic Web – WEEK 5: RDF Schema + Ontologies

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. The Semantic Web –WEEK 5: RDF Schema + Ontologies The “Layer Cake” Model – [From Rector & Horrocks Semantic Web cuurse]

  2. Recap • ‘Resources’ on the web are things that have a URI, like a web page (a URL), a fragment of a web page (ie a URL followed by a fragment identifier), a book, a person, a web service etc • Last week we met RDF – a way of writing descriptions of resources by using attributes (or property/predicate names) and values. Hence we defined an RDF document to consist of triples of the formresource, attribute, valueOr in logic • subject, predicate, object • An RDF document can be drawn as a directed, labeled graph The Semantic Web

  3. Classes and Properties • RDF is a kind of simple, ‘flat’ relational database language. For web applications we need the kind of structuring and representational capability of an OODB. • It is desirable that we can represent common object classes (eg Person, Book, Company, Product) and common properties of these classes. We also want to make our class definitions explicit and SHARE them. • RDF does not give any ‘meaning’ to attributes or resources The Semantic Web

  4. RDF -> RDF Schema • RDF(S) allows users to define vocabularies of terms, using Class, Property, type, subClassOf, subPropertyOf, range, domain Resources can be members of classes, and classes can be put into a class hierarchy So we expect triples of this form: <resource> type Class <resource> type <class> <class> subClassOf <class> The Semantic Web

  5. Properties can have Sub-Properties We expect triples of this form: <resource> type Property <Property> subPropertyOf Property> x subPropertyOf y Means.. “all pairs of resources which are related by x are also related by y” So motherof is a sub-property of what ?? The Semantic Web

  6. Properties can have defined range and domains Domain and range give properties of properties ie the class of thing that the property can be applied to (domain) and the class of things that could be the value (ranges) So we expect triples of this form: <Property> domain <Class> <Property> range <Class> Eg fatherof range Person The Semantic Web

  7. RDF Schema example Cat typeClass hasParent typeProperty Kitten subClassOf Cat Dyllan type Kitten sameLitter range Cat sameLitter domain Cat The Semantic Web

  8. RDFS – another example - longhand <?xml version="1.0"?> <rdf:RDF xmlns:rdf= "http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xml:base= "http://www.animals.fake/animals"> <rdf:Description rdf:ID="animal"> <rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/> </rdf:Description> <rdf:Description rdf:ID="horse"> <rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/> <rdfs:subClassOf rdf:resource="#animal"/> </rdf:Description> <rdf:Description rdf:ID="dog"> <rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/> <rdfs:subClassOf rdf:resource="#animal"/> </rdf:Description> </rdf:RDF> The Semantic Web

  9. RDFS – example – shorter (type implicit) <?xml version="1.0"?> <rdf:RDF xmlns:rdf= "http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xml:base= "http://www.animals.fake/animals"> <rdfs:Class rdf:ID="animal" /> <rdfs:Class rdf:ID="horse"> <rdfs:subClassOf rdf:resource="#animal"/> </rdfs:Class> <rdfs:Class rdf:ID="dog"> <rdfs:subClassOf rdf:resource="#animal"/> </rdfs:Class> </rdf:RDF> The Semantic Web

  10. example – even shorter Animal type class Horse type class Horse subClassOf Animal Dog subClassOf Animal .. Bit of an ontology! The Semantic Web

  11. Ontologies – many defns • An ‘Ontology’ is --- an agreed on, shared, common understanding of a domain written as an explicit, formal specification. -- a specification of a conceptualization, where a conceptualization is “an abstract, simplified view of the world” -- etc Because of the taxonomic nature of things, the specification is often written in terms of classes and properties etc • RDFS can be used as an ontology language as it has Classes and properties, Sub/super-classes, range and domain • Ontologies are often used to share the common meanings of terms used in semantic web pages. The Semantic Web

  12. Ontologies – from philosopy ONTOLOGY - “The systematic study of existence” “the science or study of being” EPISTEMOLOGY - “The study of knowledge” The Semantic Web

  13. Ontologies - history • First used for Knowledge-Sharing and Knowledge Re-Use in KBS. They can be as simple as a ‘concept hierarchy’ or as complex as an axiomatic theory of sets. • There are various “kinds” of ontology: eg – -- representation ontology (axiomatization of basic operations used in many applications) or -- -- application ontology (capturing a taxonomy of the animal kingdom). The Semantic Web

  14. Databases vs Ontologies Databases are • Large bodies of persistent data • Interpreted as a list of facts • Generally stored relationally in tables (OO databases may never catch on…) • Complete with highly optimised access procedures and interface mechanisms The Semantic Web

  15. Databases vs Ontologies In comparison, ontologies • Can store more information than factual eg quantified (Fred has at least one pet) or disjunctive (Bill is a boy or a girl) • Come with implied reasoning mechanisms • Are more akin to OO DBs • Classes and properties may have more than one description / definition The Semantic Web

  16. Conclusions • RDF schema + languages above it are considered suitable languages for Semantic Web encoding • Ontologies are used to encode and share knowledge in the Semantic Web The Semantic Web

More Related