Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

38
Semantic Web Semantic Web and RDF Ontologies and RDF Ontologies Mehmet Aktas Mehmet Aktas Marlon Pierce Marlon Pierce Indiana University Indiana University

Transcript of Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

Page 1: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

Semantic WebSemantic Weband RDF Ontologiesand RDF Ontologies

Mehmet AktasMehmet Aktas

Marlon PierceMarlon Pierce

Indiana UniversityIndiana University

Page 2: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

Semantic Web OverviewSemantic Web Overview

““The Semantic Web is a major research initiative of the World The Semantic Web is a major research initiative of the World Wide Web Consortium (W3C) to create a metadata-rich Web of Wide Web Consortium (W3C) to create a metadata-rich Web of resources that can describe themselves not only by how they resources that can describe themselves not only by how they should be displayed (HTML) or syntactically (XML), but also by the should be displayed (HTML) or syntactically (XML), but also by the meaning of the metadata.” meaning of the metadata.”

From W3C Semantic Web Activity PageFrom W3C Semantic Web Activity Page

““The Semantic Web is an extension of the current web in whichThe Semantic Web is an extension of the current web in whichinformation is given well-defined meaning, better enabling information is given well-defined meaning, better enabling computers and people to work in cooperation.”computers and people to work in cooperation.”

Tim Berners-Lee, James Hendler, Ora Lassila, Tim Berners-Lee, James Hendler, Ora Lassila, The Semantic WebThe Semantic Web, Scientific American, May 2001, Scientific American, May 2001

Page 3: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

Semantic Web VisionSemantic Web Vision

Well known Scientific American Well known Scientific American article by Tim Berners-Lee, James article by Tim Berners-Lee, James Hendler, and Ora LassilaHendler, and Ora Lassila• http://www.sciam.com/print_version.cfmhttp://www.sciam.com/print_version.cfm

?articleID=00048144-10D2-1C70-84A98?articleID=00048144-10D2-1C70-84A9809EC588EF2109EC588EF21

Example: making a doctor’s Example: making a doctor’s appointmentappointment

Dr. Marlon Pierce

Page 4: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

MotivationsMotivations

Difficulties to find, present, access, or maintain Difficulties to find, present, access, or maintain

available electronic information on the webavailable electronic information on the web

Need for a data representation to enable software Need for a data representation to enable software

products (agents) to provide intelligent access to products (agents) to provide intelligent access to

heterogeneous and distributed information.heterogeneous and distributed information.

Page 5: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

The Semantic Stack and Ontology LanguagesThe Semantic Stack and Ontology Languages

XML, XML Schema

RDF

DAML,OIL,

DAML+OIL OWL Lite

RDF Schema

OWL DL

OWL Full

From “The Semantic Web” technical report by From “The Semantic Web” technical report by PiercePierce

The Semantic Language Layer for the WebThe Semantic Language Layer for the Web

A

B

A = Ontology languages based on XML syntax

B = Declarative ontology languages build on top of RDF and RDF Schema

Page 6: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

Resource Description Framework (RDF) - IResource Description Framework (RDF) - I

Resource Description Framework (RDF)Resource Description Framework (RDF) is a framework for is a framework for describing and interchanging describing and interchanging metadatametadata (data describing (data describing the the web resourcesweb resources). ).

RDF provides machine understandable semantics for RDF provides machine understandable semantics for metadata.metadata.This leads, This leads,

better precision in resource discovery than full text better precision in resource discovery than full text search, search,

assisting applications as schemas evolve, assisting applications as schemas evolve, interoperability of metadata. interoperability of metadata.

Page 7: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

Resource Description Framework (RDF)- IIResource Description Framework (RDF)- II RDF has following important conceptsRDF has following important concepts

• Resource :Resource : The resources being described by RDF are The resources being described by RDF are anything that can be named via a URI. anything that can be named via a URI.

• Property :Property : RDF entities are built up out of properties RDF entities are built up out of properties and their associated values. A property is also a and their associated values. A property is also a resource that has a name, for instance Author or Title. resource that has a name, for instance Author or Title.

• Statement : Statement : A statement consists of the combination A statement consists of the combination of a Resource, a Property, and an associated value. of a Resource, a Property, and an associated value.

Example: Alice is the creator of the resource http://www.cs.indiana.edu/~Alice.

Page 8: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

The Dublin Core Definition StandardThe Dublin Core Definition Standard RDF is dependent on metadata conventions for RDF is dependent on metadata conventions for

definitions.definitions.

The Dublin Core is an example definition standard which The Dublin Core is an example definition standard which defines a simple metadata elements for describing Web defines a simple metadata elements for describing Web authoring.authoring.

It is named after 1995 Dublin (Ohio) Metadata Workshop.It is named after 1995 Dublin (Ohio) Metadata Workshop.

Following list is the partial tag element list for Dublin Following list is the partial tag element list for Dublin Core standard.Core standard.

• Creator: the primary author of the contentCreator: the primary author of the content• Date: date of creation or other important life cycle eventsDate: date of creation or other important life cycle events• Title: the name of the resourceTitle: the name of the resource• Subject: the resource topicSubject: the resource topic• Description: an account of the contentDescription: an account of the content• Type: the genre of the contentType: the genre of the content• Language: the human language of the content.Language: the human language of the content.

Page 9: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

ExampleExample

http://www.cs.indiana.edu/~Alice

creator =http://purl.org/dc/elements/1.1/creator

Alice is the creator of the resource http://www.cs.indiana.edu/~Alice.

• Property “creator” refers to a specific definition. (in this example by Dublin Core

Definition Standard). So, there is a structured URI for this property. This URI makes this

property unique and globally known.

• By providing structured URI, we also specified the property value Alice as following.

“http://www.cs.indiana.edu/People/auto/b/Alice”

Alice

ResourceResource PropertyProperty

Property Value

Property Value

Page 10: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

ExampleExample

Alice is the creator of the resource http://www.cs.indiana.edu/~Alice.

<rdf:RDF xmlns:rdf=”http://www.w3c.org/1999/02/22-rdf-syntax-ns##” xmlns:dc=”http://purl.org/dc/elements/1.1” xmlns:cgl=”http://cgl.indiana.edu/people”>

<rdf:Description about=” http://www.cs.indiana.edu/~Alice”><dc:creator>

<cgl:staff> Alice </cgl:staff></dc:creator>

</rdf:RDF>

• Information in the graph can be modeled in diff. XML organizations. Human readers would

infer the same structure, however, general purpose applications would not.

•Given RDF model enables any general purpose application to infer the same structure.

Why bother to use RDF instead of XML?

Why bother to use RDF instead of XML?

Page 11: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

RDF Schema (RDF Schema (RDFSRDFS ) )

RDF Schema is an extension of Resource Description RDF Schema is an extension of Resource Description Framework.Framework.

RDF Schema provides a higher level of abstraction than RDF Schema provides a higher level of abstraction than RDFRDF..

• specific classes of resources ,specific classes of resources ,• specific properties, specific properties, • and the relationships between these properties and other resources and the relationships between these properties and other resources

can be described.can be described. RDFS allows specific resources to be described RDFS allows specific resources to be described as instances as instances

of more general classesof more general classes.. Also, RDFS provides important semantic capabilities that Also, RDFS provides important semantic capabilities that

are used by enhanced semantic languages like DAML, OIL are used by enhanced semantic languages like DAML, OIL and OWL.and OWL.

It resembles objected-oriented programming

It resembles objected-oriented programming

Page 12: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

Resource Description Framework Resource Description Framework (RDF)(RDF)

RDF is the simplest of the semantic languages.RDF is the simplest of the semantic languages. Basic Idea #1: TriplesBasic Idea #1: Triples

• RDF is based on a subject-verb-object statement RDF is based on a subject-verb-object statement structure.structure.

• RDF subjects are called classesRDF subjects are called classes• Verbs are called properties.Verbs are called properties.

Basic Idea #2: Everything is a resource that is Basic Idea #2: Everything is a resource that is named with a URInamed with a URI• RDF nouns, verbs, and objects are all labeled with URIsRDF nouns, verbs, and objects are all labeled with URIs• Recall that a URI is just a name for a resource. Recall that a URI is just a name for a resource. • It may be a URL, but not necessarily.It may be a URL, but not necessarily.• A URI can name anything that can be describedA URI can name anything that can be described

Web pages, creators of web pages, organizations that the Web pages, creators of web pages, organizations that the creator works for,….creator works for,….

Dr. Marlon Pierce

Page 13: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

Scientific MetadataScientific Metadata

Define metadata and describe Define metadata and describe its use in physical and its use in physical and

computer science.computer science.

Dr. Marlon Pierce

Page 14: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

What is Metadata?What is Metadata? Common definition: data about dataCommon definition: data about data ““Traditional” Examples Traditional” Examples

• Prescriptions of database structure and contents.Prescriptions of database structure and contents.• File names and permissions in a file system.File names and permissions in a file system.• HDF5 metadata: describes data characteristics such as HDF5 metadata: describes data characteristics such as

array sizes, data formats, etc.array sizes, data formats, etc. Metadata may be queried to learn the Metadata may be queried to learn the

characteristics of the data it describes.characteristics of the data it describes. Traditional metadata systems are functionally Traditional metadata systems are functionally

tightly coupled to the data they describe.tightly coupled to the data they describe.• Prescriptive, needed to interact directly with data.Prescriptive, needed to interact directly with data.

Dr. Marlon Pierce

Page 15: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

Metadata and the WebMetadata and the Web Traditional metadata concepts must be extended Traditional metadata concepts must be extended

as systems become more distributed, information as systems become more distributed, information becomes broaderbecomes broader• Tight functional integration not as importantTight functional integration not as important• Metadata used for information, becomes descriptive.Metadata used for information, becomes descriptive.• Metadata may need to describe resources, not just data.Metadata may need to describe resources, not just data.

Everything is a resourceEverything is a resource• People, computers, software, conference presentations, People, computers, software, conference presentations,

conferences, activities, projects.conferences, activities, projects. We’ll next look at several examples that use We’ll next look at several examples that use

metadata, featuringmetadata, featuring• Dublin Core: digital librariesDublin Core: digital libraries• CMCS: chemistryCMCS: chemistry

Dr. Marlon Pierce

Page 16: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

Collaboratory for Multiscale Collaboratory for Multiscale Chemical Science (CMCS)Chemical Science (CMCS)

SciDAC project involving several DOE labsSciDAC project involving several DOE labs• See See http://cmcs.ca.sandia.gov/index.phphttp://cmcs.ca.sandia.gov/index.php..

Project scope is to build Web infrastructure Project scope is to build Web infrastructure (portals, services, distributed data) to enable (portals, services, distributed data) to enable multiscale coupling of chemical applications multiscale coupling of chemical applications

Dr. Marlon Pierce

Page 17: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

CMCS Is Data Driven GridCMCS Is Data Driven Grid Core of the CMCS project is to exchange Core of the CMCS project is to exchange

chemical data and information between chemical data and information between different scales in a well defined, consistent, different scales in a well defined, consistent, validated manner.validated manner.

Journal publication of chemical data is too Journal publication of chemical data is too slow.slow.

Need to support distributed online chemical Need to support distributed online chemical data repositories.data repositories.

Need an application layer between the user Need an application layer between the user and the data.and the data.• Simplify access through portals and intelligent Simplify access through portals and intelligent

search tools.search tools.• Control read/write access to dataControl read/write access to data

Dr. Marlon Pierce

Page 18: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

CMCS Data ProblemsCMCS Data Problems Users need to intelligently Users need to intelligently

search repositories for data.search repositories for data.• Characterize it with Characterize it with

metadatametadata Many data values are Many data values are

derived from long derived from long calculation chains.calculation chains.• Bad data can propagate, Bad data can propagate,

corrupt many dependent corrupt many dependent values.values.

Experimental values are Experimental values are also sometimes also sometimes questionable.questionable.

Always the problem of Always the problem of incorrect data entry, errata.incorrect data entry, errata.

Dr. Marlon Pierce

Page 19: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

Solution: Annotation Metadata and Solution: Annotation Metadata and Data PedigreeData Pedigree

CMCS provides CMCS provides subject areasubject area metadata tags to metadata tags to identify data identify data • Species name, Chemical Abstracts Service number, Species name, Chemical Abstracts Service number,

formula, common name, vibrational frequency, formula, common name, vibrational frequency, molecular geometry, absolute energy, entropy, specific molecular geometry, absolute energy, entropy, specific heat, heat capacity, free energy differences, etc.heat, heat capacity, free energy differences, etc.

Data Pedigree Data Pedigree also must be recorded.also must be recorded.• Where was it published/described?Where was it published/described?• Who measured or calculated the values?Who measured or calculated the values?

Intellectual propertyIntellectual property• How were the values obtained?How were the values obtained?• What other values does it depend upon?What other values does it depend upon?

Also provides community Also provides community annotationannotation capabilities capabilities• Is this value suspicious? Why?Is this value suspicious? Why?

Monte Carlo and other techniques exist to automate this.Monte Carlo and other techniques exist to automate this.• Has the data been officially blessed? By whom?Has the data been officially blessed? By whom?

CurationCuration Dr. Marlon Pierce

Page 20: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

What Does This Have to Do with What Does This Have to Do with Scientific Computing?Scientific Computing?

RDF resources aren’t just web pagesRDF resources aren’t just web pages• Can be computer codes, simulation and Can be computer codes, simulation and

experimental data, hardware, research groups, experimental data, hardware, research groups, algorithms, ….algorithms, ….

Recall from the CMCS chemistry example Recall from the CMCS chemistry example that they needed to describe the that they needed to describe the provenanceprovenance, , annotationannotation, and , and curationcuration of chemistry data. of chemistry data.• Compound X’s properties were calculated by Dr. Y.Compound X’s properties were calculated by Dr. Y.

CMCS maps all of their metadata to the CMCS maps all of their metadata to the Dublin Core.Dublin Core.

The Dublin Core is encoded quite nicely as The Dublin Core is encoded quite nicely as RDF.RDF.

Dr. Marlon Pierce

Page 21: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

Resource Description Resource Description FrameworkFramework

Overview of RDF basic ideas Overview of RDF basic ideas and XML encoding.and XML encoding.

Dr. Marlon Pierce

Page 22: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

Structure of the DocumentStructure of the Document RDF XML probably a RDF XML probably a

bit hard to read if you bit hard to read if you are not familiar with are not familiar with XML namespaces.XML namespaces.

Container structure is Container structure is illustrated on the illustrated on the right.right.

Skeleton isSkeleton is<RDF><RDF> <Description <Description

about=“”>about=“”> <creator/><creator/> <title/><title/> </Description></Description></RDF></RDF>

<RDF>

<Description>

<Creator> <Title>

Dr. Marlon Pierce

Page 23: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

What is the Advantage?What is the Advantage? So far, properties are just conventional URI names.So far, properties are just conventional URI names.

• All semantic web properties are conventional assertions about All semantic web properties are conventional assertions about relationships between resources.relationships between resources.

• RDFS and DAML will offer more precise property capabilities.RDFS and DAML will offer more precise property capabilities. But there is a powerful feature we are about to explore…But there is a powerful feature we are about to explore…

• Properties provide a powerful way of linking different RDF resources Properties provide a powerful way of linking different RDF resources ““Nuggets” of information.Nuggets” of information.

For example, a publication is a resource that can be described by For example, a publication is a resource that can be described by RDFRDF• Author, publication date, URL are all metadata property values.Author, publication date, URL are all metadata property values.• But publications have references that are just other publicationsBut publications have references that are just other publications• DC’s “hasReference” can be used to point from one publication to DC’s “hasReference” can be used to point from one publication to

another.another. Publication also have authors Publication also have authors

• An author is more than a nameAn author is more than a name• Also an RDF resource with collections of propertiesAlso an RDF resource with collections of properties

Name, email, telephone number, Name, email, telephone number,

Dr. Marlon Pierce

Page 24: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

vCard: Representing People with vCard: Representing People with RDF PropertiesRDF Properties

The Dublin Core tags are best used to represent The Dublin Core tags are best used to represent metadata about “published content”metadata about “published content”• Documents, published dataDocuments, published data

vCards are an IETF standard for representing vCards are an IETF standard for representing peoplepeople• Typical properties include name, email, organization Typical properties include name, email, organization

membership, mailing address, title, etc.membership, mailing address, title, etc.• See http://www.ietf.org/rfc/rfc2426.txtSee http://www.ietf.org/rfc/rfc2426.txt

Like the DC, vCards are independent of (and Like the DC, vCards are independent of (and predate) RDF but are map naturally into RDF.predate) RDF but are map naturally into RDF.• Each of these maps naturally to an RDF propertyEach of these maps naturally to an RDF property• See http://www.w3.org/TR/2001/NOTE-vcard-rdf-See http://www.w3.org/TR/2001/NOTE-vcard-rdf-

20010222/20010222/

Dr. Marlon Pierce

Page 25: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

Example: A vCard in RDF/XMLExample: A vCard in RDF/XML

<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns:vcard='http://www.w3.org/2001/vcard-rdf/3.0#'> <rdf:Description rdf:about='http://cgl.indiana.edu/people/GCF' vcard:EMAIL='[email protected]'> <vcard:FN>Geoffrey Fox</vcard:FN> <vcard:N vcard:Given='Geoffrey' vcard:Family='Fox'/> </rdf:Description></rdf:RDF>

Dr. Marlon Pierce

Page 26: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

Linking vCard and Dublin Core Linking vCard and Dublin Core ResourcesResources

The real power of RDF is that you can link two The real power of RDF is that you can link two independently specified resources through the independently specified resources through the use of properties.use of properties.

We do this using URIs as universal pointers We do this using URIs as universal pointers • Identify specific resources (nouns) and specifications for Identify specific resources (nouns) and specifications for

properties (verbs)properties (verbs)• The URIs may optionally be URLs that can be used to The URIs may optionally be URLs that can be used to

fetch the information.fetch the information. Linking these resource nuggets allows us to pose Linking these resource nuggets allows us to pose

queries likequeries like• ““What is the email address of the creator of this entry in What is the email address of the creator of this entry in

the chemical database?”the chemical database?”• ““What other entries reference directly or indirectly on What other entries reference directly or indirectly on

this data entry?” this data entry?” Linkages can be made at any timeLinkages can be made at any time

• Don’t have to be designed into the systemDon’t have to be designed into the systemDr. Marlon Pierce

Page 27: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

RDF SchemaRDF Schema RDF Schema is a rules system for building RDF RDF Schema is a rules system for building RDF

languages.languages.• RDF and RDFS are defined in terms of RDFSRDF and RDFS are defined in terms of RDFS• DAML+OIL is defined by RDFS.DAML+OIL is defined by RDFS.

Take the Dublin Core RDF encoding as an example:Take the Dublin Core RDF encoding as an example:• Can we formalize this process, defining a consistent set of Can we formalize this process, defining a consistent set of

rules?rules?• Can we place restrictions and use inheritance to define Can we place restrictions and use inheritance to define

resources?resources? What really is the value of “creator”? Can I derive it from What really is the value of “creator”? Can I derive it from

another class, like “person”?another class, like “person”?• Can we provide restrictions and rules for properties?Can we provide restrictions and rules for properties?

How can I express the fact that “title” should only appear How can I express the fact that “title” should only appear once?once?

• Current DC encoding in fact is defined by RDFS.Current DC encoding in fact is defined by RDFS.

Dr. Marlon Pierce

Page 28: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

Some RDFS ClassesSome RDFS ClassesRDFS: ResourceRDFS: Resource The RDFS root element. All The RDFS root element. All

other tags derive from other tags derive from ResourceResource

RDFS: ClassRDFS: Class The Class class. Literals and The Class class. Literals and Datatypes are example Datatypes are example classes.classes.

RDFS: LiteralRDFS: Literal The class for holding Strings The class for holding Strings and integers. Literals are and integers. Literals are dead ends in RDF graphs.dead ends in RDF graphs.

RDFS: DatatypeRDFS: Datatype A type of data, a member of A type of data, a member of the Literal class. the Literal class.

RDFS: XMLLiteralRDFS: XMLLiteral A datatype for holding XML A datatype for holding XML data.data.

RDFS:PropertyRDFS:Property This is the base class for all This is the base class for all properties (that is, verbs).properties (that is, verbs).

Dr. Marlon Pierce

Page 29: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

RDFS Class Org ChartRDFS Class Org Chart

Resource

Class Property

Literal DataType

XMLLiteral

Instance Of: Subclass Of:

Dr. Marlon Pierce

Page 30: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

Some RDFS PropertiesSome RDFS PropertiessubClassOfsubClassOf Indicates the subject is a Indicates the subject is a

subclass of the object in a subclass of the object in a statement.statement.

subPropertyOfsubPropertyOf The subject is a subProperty The subject is a subProperty of the property of the property (masquerading as an (masquerading as an object).object).

Comment, LabelComment, Label Simple properties that take Simple properties that take string literals as valuesstring literals as values

RangeRange Restricts the values of a Restricts the values of a property to be members of property to be members of an indicated class or one of an indicated class or one of its subclasses.its subclasses.

isDefinedByisDefinedBy Points to the human Points to the human readaable definition of a readaable definition of a class, usually a URL.class, usually a URL.

Dr. Marlon Pierce

Page 31: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

Sample RDFS: Defining <Property>Sample RDFS: Defining <Property>

This is the definition of <property>, taken from the RDF This is the definition of <property>, taken from the RDF schema.schema.

The “about” attribute labels names this nugget.The “about” attribute labels names this nugget. <property> has several properties<property> has several properties

• <label>,<comment> are self explanatory.<label>,<comment> are self explanatory.• <subClassOf> means <property> is a subclass of <resource><subClassOf> means <property> is a subclass of <resource>• <isDefinedBy> points to the human-readable documentation.<isDefinedBy> points to the human-readable documentation.

<rdfs:Class rdf:about="http://.../some/uri"> <rdfs:isDefinedBy rdf:resource="http://.../some/uri"/> <rdfs:label>Property</rdfs:label> <rdfs:comment>The class of RDF properties.</rdfs:comment> <rdfs:subClassOf rdf:resource="http://.../#Resource”> </rdfs:Class>

Dr. Marlon Pierce

Page 32: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

What’s an Ontology?What’s an Ontology? ““Ontology” is an often used term in the field of Ontology” is an often used term in the field of

Knowledge Representation, Information Modeling, Knowledge Representation, Information Modeling, etc.etc.

English definitions tend to be vague to non-English definitions tend to be vague to non-specialistsspecialists• ““A formal, explicit specification of a shared A formal, explicit specification of a shared

conceptionalization”conceptionalization” Clearer definition: an ontology is a taxonomy Clearer definition: an ontology is a taxonomy

combined with inference rulescombined with inference rules• T. Berners-Lee, J. Hendler, O. LassilaT. Berners-Lee, J. Hendler, O. Lassila

But really, if you sit down to describe a subject in But really, if you sit down to describe a subject in terms of its classes and their relationships using terms of its classes and their relationships using RDFS or DAML, you are creating an Ontology.RDFS or DAML, you are creating an Ontology.• See the HPCMP Ontology example in the report.See the HPCMP Ontology example in the report.

Dr. Marlon Pierce

Page 33: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

Philosophy’s Fine, but Can I Philosophy’s Fine, but Can I Program It?Program It?

Yes. The HP Lab’s Jena package Yes. The HP Lab’s Jena package provide Java classes for creating provide Java classes for creating programs to RDF/RDFS, DAML, and programs to RDF/RDFS, DAML, and now OWL.now OWL.

Several tools built on top of JenaSeveral tools built on top of Jena• IsaViz, Protégé are two nice authoring IsaViz, Protégé are two nice authoring

tools.tools. Also tools for Perl, Python, C, Tcl/TKAlso tools for Perl, Python, C, Tcl/TK

• See the W3C RDF web site.See the W3C RDF web site.

Dr. Marlon Pierce

Page 34: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

RDF Ontologies for Scientific DataRDF Ontologies for Scientific Data

We are developing ontologies for science data. We are developing ontologies for science data. Examples domains:Examples domains:• Earthquake modeling codesEarthquake modeling codes• Earth sciences dataEarth sciences data

TechnologiesTechnologies• RDF/RDFSRDF/RDFS• Ontology Editors (IsaViz, OntoEdit, Protégé, etc..)Ontology Editors (IsaViz, OntoEdit, Protégé, etc..)• Jena toolkit from HP.Jena toolkit from HP.

Reasoning on the semantic metadataReasoning on the semantic metadata Ontology aided querial servicesOntology aided querial services Software Agents for front-end applicationsSoftware Agents for front-end applications

• Case Base Reasoning (CBR) Case Base Reasoning (CBR)

Page 35: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.
Page 36: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.
Page 37: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

EOS ConceptsEOS Concepts

Page 38: Semantic Web and RDF Ontologies Mehmet Aktas Marlon Pierce Indiana University.

Give me the list of resources measuring the Temperature. (Query 1)[Temperature, http://protege.stanford.edu/kb#isMeasuredBy, Resource<ASTER>][Temperature, http://protege.stanford.edu/kb#isMeasuredBy, Resource<Terra>][Temperature, http://protege.stanford.edu/kb#isMeasuredBy, Resource<MISR>]There are total 3 resources.

Give me the list of parameters measured by ASTER. (Query 2)[Temperature, http://protege.stanford.edu/kb#isMeasuredBy, Resource<ASTER>][OZONE, http://protege.stanford.edu/kb#isMeasuredBy, Resource<ASTER>]There are total 2 resources.

Give me the list of triples where the Temperature is measured or ASTER is the Sensor. (Union)[Temperature, http://protege.stanford.edu/kb#isMeasuredBy, Resource<ASTER>][OZONE, http://protege.stanford.edu/kb#isMeasuredBy, Resource<ASTER>][Temperature, http://protege.stanford.edu/kb#isMeasuredBy, Resource<Terra>][Temperature, http://protege.stanford.edu/kb#isMeasuredBy, Resource<MISR>]

There are total 4 triples.

Give me the list of triples where the Temperature is measured and ASTER is the Sensor. (Intersection)[Temperature, http://protege.stanford.edu/kb#isMeasuredBy, Resource<ASTER>]

Give me the list of triples where the Query2 results are different than Query1 results.

(Difference)[OZONE, http://protege.stanford.edu/kb#isMeasuredBy, Resource<ASTER>]

Jena OutputJena Output