OpenHPI 2.6 - How to Model Classes and Relations - RDFS
Upcoming SlideShare
Loading in...5
×
 

OpenHPI 2.6 - How to Model Classes and Relations - RDFS

on

  • 556 views

 

Statistics

Views

Total Views
556
Slideshare-icon Views on SlideShare
556
Embed Views
0

Actions

Likes
1
Downloads
35
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

CC Attribution-NonCommercial-NoDerivs LicenseCC Attribution-NonCommercial-NoDerivs LicenseCC Attribution-NonCommercial-NoDerivs License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    OpenHPI 2.6 - How to Model Classes and Relations - RDFS OpenHPI 2.6 - How to Model Classes and Relations - RDFS Presentation Transcript

    • Semantic Web TechnologiesLecture 2: Semantic Web - Basic Architecture I 06: How to Model Classes and Relations? - RDFS Dr. Harald Sack Hasso Plattner Institute for IT Systems Engineering University of Potsdam Spring 2013 This file is licensed under the Creative Commons Attribution-NonCommercial 3.0 (CC BY-NC 3.0)
    • 2Lecture 2: Semantic Web - Basic Architecture I Open HPI - Course: Semantic Web Technologies Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
    • 06 How to Model Classes and Relations? - RDFSOpen HPI - Course: Semantic Web Technologies - Lecture 2: Semantic Web Basic Architecture I3 SO ... WE NEED A WAY TO DEFINE RDF SCHEMATA FOR CLASSES AND RELATIONS ?! Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
    • 2. Semantic Web - Basic Architecture Languages of the Semantic Web - Part 14 Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
    • Why RDFSchema...?5 Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
    • Why RDFSchema...?5 • An application program can define and use RDF data Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
    • Why RDFSchema...?5 • An application program can define and use RDF data • ….if the application program knows, which terms and classes to use, as e.g. Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
    • Why RDFSchema...?5 • An application program can define and use RDF data • ….if the application program knows, which terms and classes to use, as e.g. • name, title, year, … Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
    • Why RDFSchema...?5 • An application program can define and use RDF data • ….if the application program knows, which terms and classes to use, as e.g. • name, title, year, … • name, blog, phone number… Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
    • Why RDFSchema...?5 • An application program can define and use RDF data • ….if the application program knows, which terms and classes to use, as e.g. • name, title, year, … • name, blog, phone number… • author, cites, … Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
    • Why RDFSchema...?5 • An application program can define and use RDF data • ….if the application program knows, which terms and classes to use, as e.g. • name, title, year, … • name, blog, phone number… • author, cites, … • But..... Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
    • Why RDFSchema...?5 • An application program can define and use RDF data • ….if the application program knows, which terms and classes to use, as e.g. • name, title, year, … • name, blog, phone number… • author, cites, … • But..... • Are all terms known? Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
    • Why RDFSchema...?5 • An application program can define and use RDF data • ….if the application program knows, which terms and classes to use, as e.g. • name, title, year, … • name, blog, phone number… • author, cites, … • But..... • Are all terms known? • Are all terms correct? Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
    • Why RDFSchema...?5 • An application program can define and use RDF data • ….if the application program knows, which terms and classes to use, as e.g. • name, title, year, … • name, blog, phone number… • author, cites, … • But..... • Are all terms known? • Are all terms correct? • Are there (logical) relations among the terms? Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
    • Why RDFSchema...?5 • An application program can define and use RDF data • ….if the application program knows, which terms and classes to use, as e.g. • name, title, year, … • name, blog, phone number… • author, cites, … • But..... • Are all terms known? • Are all terms correct? • Are there (logical) relations among the terms? • We need a language for data definition: RDF Schema Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
    • Why RDFSchema...?5 • An application program can define and use RDF data • ….if the application program knows, which terms and classes to use, as e.g. • name, title, year, … • name, blog, phone number… • author, cites, … • But..... • Are all terms known? • Are all terms correct? • Are there (logical) relations among the terms? • We need a language for data definition: RDF Schema • officially called “RDF Vocabulary Description Language” Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
    • RDFSchema6 • First W3C draft in April 1998, W3C Recommendation Feb. 2004. • RDF Schema defines a data model for the creation of RDF statements • RDFSchema allows: • Definition of classes •Class instantiation in RDF via <rdf:type> • Definition of properties and restrictions • Definition of hierarchies •Subclasses and superclasses •Subproperties and superproperties Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
    • Vocabulary7 • Classes • rdfs:Class Concept of a class, defines an abstract object and is applied (with rdf:type) to create instances • rdf:Property Base class for properties • rdfs:Literal Class for literals • rdfs:Resource every entity of an RDF model is instance of this class • and additionally rdfs:Datatype, rdf:XMLLiteral, rdfs:Container, rdfs:ContainerMembershipProperty Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
    • Example8 rdfs:Resource rdfs:subClassOf rdfs:subClassOf rdfs:subClassOf rdfs:Class rdf:Property rdfs:Class rdf:type rdf:type rdf:type domain Lecture range isManagedBy Staff RDFS rdf:type rdf:type RDF exv:SemanticWebTechnologies exv:HaraldSack exv:isManagedBy Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
    • Vocabulary9 •Properties • rdfs:subClassOf transitive property to define inheritance hierarchies for classes • rdfs:subPropertyOf transitive property to define inheritance hierarchies for properties • rdfs:domain defines the domain of a property concerning a class • rdfs:range defines range of a property concerning a class Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
    • Example10 rdfs:Class rdf:Property rdfs:Class rdf:type rdf:type rdf:type class rdfs:domain property class Course isManagedBy rdfs:range Staff subClassOf subClassOf subClassOf class class subClassOf class class Seminar Lecture Prof. SeniorResearcher RDFS rdf:type rdf:type RDF exv:SemanticWebTechnologies exv:HaraldSack exv:isManagedBy Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
    • Language Model t t rdfs:Class rdfs:Resource s s – subclass relation t – instance relationSemantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
    • Language Model t t rdfs:Class rdfs:Resource s t s rdfs:Literal s – subclass relation t – instance relationSemantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
    • Language Model t t rdfs:Class rdfs:Resource s t t s s rdfs:Literal rdf:Property s – subclass relation t – instance relationSemantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
    • Language Model t t rdfs:Class rdfs:Resource s t t s s t rdfs:Literal rdf:Property rdf:type t t t t rdfs:comment t rdfs:range rdfs:domain rdfs:subClassOf s – subclass relation rdfs:subPropertyOf t – instance relationSemantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
    • Vocabulary12 • Further Properties • rdfs:seeAlso defines a relation of a resource to another, which explains it • rdfs:isDefinedBy subproperty of rdf:seeAlso, defines the relation of a resource to its definition • rdfs:comment comment, usually as text • rdfs:label „readable“ name of a resource (contrary to ID) Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
    • RDF(S) Knowledge Base13 T-Box Terminologcal Knowledge Person rdfs:subClassOf rdfs:domain Course rdfs:range is managed by Staffrdfs:subClassOf rdfs:subClassOf rdfs:subClassOf rdfs:subClassOf Seminar Lecture Prof. SeniorResearcher RDFSA-Box rdf:type RDF rdf:typeAssertional Knowledge exv:SemanticWebTechnologies exv:HaraldSack exv:isManagedBy Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
    • Example@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> Turtle@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>:Course a rdfs:Class .:Lecture a rdfs:Class; rdfs:subClassOf :Course.:Seminar a rdfs:Class ; rdfs:subClassOf :Course.:Person a rdfs:Class .:Staff a rdfs:Class ; rdfs:subClassOf :Person .:SeniorResearcher a rdfs:Class ; rdfs:subClassOf :Staff .:Professor a rdfs:Class ; rdfs:subClassOf :Staff .:isManagedBy a rdf:Property; rdfs:domain :Course ; rdfs:range :Staff .:SemanticWebTechnologies a :Lecture .:HaraldSack a :SeniorResearcher .:SemanticWebTechnologies :isManagedBy :HaraldSack .Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
    • RDFS Summary • RDFSchema defines a data model for the definition of simple ontologies (knowledge representations). • Via RDFSchema ontologies RDF statements (facts) can be expressed • More than XML: • (small) ontological agreement about modelling primitives • Possibility to define own vocabulariesSemantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
    • 07 How much semantics is there in RDF(S)Open HPI - Course: SemanticHarald Sack, Hasso-Plattner-Institut, Universität Potsdam Semantic Web Technologies , Dr. Web Technologies - Lecture 2: Semantic Web Basic Architecture I