Logics for Data and Knowledge Representation Resource Description Framework (RDF) -- Exercises Feroz Farazi.

Slides:



Advertisements
Similar presentations
Knowledge Representation using First-Order Logic
Advertisements

Dr. Leo Obrst MITRE Information Semantics Information Discovery & Understanding Command & Control Center February 6, 2014February 6, 2014February 6, 2014.
Fischer Manufacturing is an electrical fabrication company based in New Brighton, MN. We specialize in building to engineering specified requirements.
CH-4 Ontologies, Querying and Data Integration. Introduction to RDF(S) RDF stands for Resource Description Framework. RDF is a standard for describing.
RDF Schemata (with apologies to the W3C, the plural is not ‘schemas’) CSCI 7818 – Web Technologies 14 November 2001 Van Lepthien.
RDF Tutorial.
Of 27 lecture 7: owl - introduction. of 27 ece 627, winter ‘132 OWL a glimpse OWL – Web Ontology Language describes classes, properties and relations.
Using the Semantic Web to Construct an Ontology- Based Repository for Software Patterns Scott Henninger Computer Science and Engineering University of.
Dr. Jim Bowring Computer Science Department College of Charleston CSIS 690 (633) May Evening 2009 Semantic Web Principles and Practice Class 5: 27 May.
Design Principles: Faithfulness
Chapter 8: Web Ontology Language (OWL) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley, 2005.
Dr. Alexandra I. Cristea RDF.
Knowledge Acquisitioning. Definition The transfer and transformation of potential problem solving expertise from some knowledge source to a program.
1 Extracting RDF Data from Unstructured Sources Based on an RDF Target Schema Tim Chartrand Research Supported By NSF.
More RDF CS 431 – Carl Lagoze – Cornell University Acknowledgements: Eric Miller Dieter Fensel.
Chapter 7: Resource Description Framework (RDF) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley,
Philosophy and Computer Science: New Perspectives of Collaboration
Cornell CS 502 Resource Description Framework Building the Semantic Web CS 502 – Carl Lagoze – Cornell University Acknowledgements: Eric Miller.
Semantic Web Technologies Lecture # 2 Faculty of Computer Science, IBA.
Amarnath Gupta Univ. of California San Diego. An Abstract Question There is no concrete answer …but …
RDF (Resource Description Framework) Why?. XML XML is a metalanguage that allows users to define markup XML separates content and structure from formatting.
Logics for Data and Knowledge Representation Resource Description Framework (RDF) Feroz Farazi.
Knowledge representation
Logics for Data and Knowledge Representation
© 2014 GB Group Limited RDF as a Universal Healthcare Exchange Language March, 2015 Angell Wang.
SQL Databases are a Moving Target Juan F. Sequeda – Syed Hamid Tirmizi –
USCISIUSCISI Background Description Logic Systems Thomas Russ.
Modeling with RDF RDF and Tabular Data Consider the Product database relation IDModel No.DivisionProduct LineSKU 1ZX-3Manufacturing supportPaper machineFB3524.
OWL 2 in use. OWL 2 OWL 2 is a knowledge representation language, designed to formulate, exchange and reason with knowledge about a domain of interest.
Logics for Data and Knowledge Representation SPARQL -- Exercises Feroz Farazi.
Conceptualizing the Distributive Property Math Alliance June 1, 2010 Melissa Hedges Beth Schefelker And DeAnn Huinker.
LOGIC AND ONTOLOGY Both logic and ontology are important areas of philosophy covering large, diverse, and active research projects. These two areas overlap.
Part I: Set Constructs. RDF Schema (RDFS) RDF does not provide mechanisms to define domain classes and properties RDFS is a vocabulary that provides many.
Advanced topics in software engineering (Semantic web)
Chapter 7: Resource Description Framework (RDF) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley,
EEL 5937 Ontologies EEL 5937 Multi Agent Systems Lecture 5, Jan 23 th, 2003 Lotzi Bölöni.
Part II. Property domain and range restriction RDFS allows us to put restriction on the properties by specifying their domain and range, providing the.
Ontology Architectural Support Options Group Name: MAS WG Source: Catalina Mladin, Lijun Dong, InterDigital Meeting Date: Agenda Item: TBD.
Artificial Intelligence 2004 Ontology
Chapter 7: Resource Description Framework (RDF) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley,
Ontology Engineering Lab #5 – September 30, 2013.
Ch 7: RDF schema 현근수, 김영욱, 백상윤, 이용현 Team C. Introduction Semantic web modeling In RDF: simply creates graph structure to represent data In RDFS: about.
Logics for Data and Knowledge Representation Web Ontology Language (OWL) -- Exercises Feroz Farazi.
Ontology Engineering Lab #3 – September 16, 2013.
Ontology Architectural Support Options Group Name: MAS WG Source: Catalina Mladin, Lijun Dong, InterDigital Meeting Date: Agenda Item: TBD.
ONTOLOGY ENGINEERING Lab #2 – September 8,
ONTOLOGY ENGINEERING Lab #3 – September 15,
Of 38 lecture 6: rdf – axiomatic semantics and query.
Chapter 3 Special Section Focus on Karnaugh Maps.
Semantic Web for the Working Ontologist Dean Allemang Jim Hendler SNU IDB laboratory.
Semantic Web for the Working Ontologist Dean Allemang Jim Hendler SNU IDB laboratory.
Unit B Constructing Complex Searches Internet Research Third Edition.
1 Instance Store Database Support for Reasoning over Individuals S Bechhofer, I Horrocks, D Turi. Instance Store - Database Support for Reasoning over.
Ccs.  Ontologies are used to capture knowledge about some domain of interest. ◦ An ontology describes the concepts in the domain and also the relationships.
n-ary relations OWL modeling problem when n≥3
Service-Oriented Computing: Semantics, Processes, Agents
Philosophy and Computer Science: New Perspectives of Collaboration
The Semantic Web Part 6. RDF Vocabularies: RDF Schema
Service-Oriented Computing: Semantics, Processes, Agents
Service-Oriented Computing: Semantics, Processes, Agents
Recording RDA data as linked data
ece 720 intelligent web: ontology and beyond
G-CORE: A Core for Future Graph Query Languages
Logics for Data and Knowledge Representation
Chapter 3 Special Section
Logics for Data and Knowledge Representation
Database Management system
ONTOMERGE Ontology translations by merging ontologies Paper: Ontology Translation on the Semantic Web by Dejing Dou, Drew McDermott and Peishen Qi 2003.
CIS Monthly Seminar – Software Engineering and Knowledge Management IS Enterprise Modeling Ontologies Presenter : Dr. S. Vasanthapriyan Senior Lecturer.
Presentation transcript:

Logics for Data and Knowledge Representation Resource Description Framework (RDF) -- Exercises Feroz Farazi

Exercise 1  Produce an RDF triple representation of the product, manufacturer and stock information provided in the following table. Table: Product IDModel Number DivisionProduct Line Manufacturi ng Location SKUAvailable 1RT-11SafetySafety valve TrentoLM RTX-56SafetySafety valve TrentoDK MBB-32AccessoriesMonitorHong KongCM DR-43Control Engineering SensorMalaysiaSN264330

Solution SubjectPredicateObject product:Product1product:id1 product:Product1product:modelNumberRT-11 product:Product1product:divisionSafety product:Product1product:productLineSafety Valve product:Product1product:manufacturing Location Trento product:Product1product:skuLM5647 product:Product1product:available70 product:Product2product:id2 product:Product2product:modelNumberRTX-56

Exercise 2  applications that use RDF data from multiple sources need to overcome the issue of managing terminology. For example, one source uses the term analyst and another uses the term researcher. A set of relations can hold between these two terms depending on the types of usages. It might be the case that a researcher is treated as a special case of an analyst. How can we represent that?

Solution  We examine the inferences we want to draw with the provided information. If a researcher is a special case of analyst, then all researchers are also analysts. This kind of “if/then” relationship can be represented with a single rdfs:subClassOf relation. :Researcherrdfs:subClassOf:Analyst

Exercise 3  Given that there is considerable overlap between the two concepts researcher and analyst. Also consider that there could be some analysts who are not researchers, and vice versa. How can we treat the entities of this two concepts as the same?

Solution  In this case we can take the union of this two classes as they overlap (partially). We define a new class suppose Investigator as both the Researcher and Analyst can be treated so. Finally, we assert that the class Investigator is the union of the overlapping classes. :Researcherrdfs:subClassOf:Investigator :Analystrdfs:subClassOf:Investigator

Exercise 4  Given that the concepts researcher and analyst are identical in every way the fact that they are two terms for the same thing. How can it be inferred that any member of one class is a member of the other, and vice versa?

Solution  In this case, the classes are equivalent. RDFS does not provide a primitive construct for expressing class equivalence. However, the same task can be done using rdfs:subClassOf. :Analystrdfs:subClassOf:Researcher :Researcher rdfs:subClassOf:Analyst Suppose we have following axioms: :Johnrdf:type :Researcher :Enricordf:type :Analyst We can infer that: :Johnrdf:type :Analyst :Enricordf:type :Researcher

Exercise 5  Given that a military mission planner wants to determine where weapons can be targeted. There are many sources of information contributing to the decision.  One source provides a list of targets and their types, some of which such as civilian facilities including churches, schools and hospitals must never be targeted.  Another source provides descriptions of airspaces including off-limits such as politically defined no-fly zones. A target is determined to be off-limits if it is excluded on the grounds of either of these data sources.

Solution  A class that will include all the entities of the civilian facility and no-fly zone can be defined. We can define OffLimit, CivilianFacility and NoFlyZone as classes and make the first as the union of the other two. cf:CivilianFacilityrdfs:subClassOfmmp:OffLimits cf:NoFlyZonerdfs:subClassOfmmp:OffLimits

Exercise 6  Suppose an application imported RDF data from an excel file.  There are two classes of entities, Person and Movie, defined by the import.  For Person a property called personName is defined that gives the name by which that person is known.  For Movie, the property called movieTitle gives the title under which the movie was released.  How to use the standard property rdfs:label to develop a generic display mechanism for showing both the names of the persons and titles of the movies?

Solution  We can define each of the properties as the as a subproperty of rdfs:label personNamerdfs:subPropertyOfrdfs:label movieTitlerdfs:subPropertyOfrdfs:label

Exercise 7  Consider that a shipping company has a fleet of vessels including  new ones that are under construction  old ones that are being repaired  the ones that are currently in service  the ones that have been retired from service NameMaiden Voyage Next Departure Decommission Date Destruction Date TitanicApril 10, 1912 April 14, 1912 MV 16May 23, 2001 November 29, 2013 MV 22June 8, 1970 February 10, 1998 Table: Ships

Exercise 7  Following axioms represent partial information of the ships: ship:MV16ship:nextDeparture“November 29, 2013” ship:MV22ship:maidenVoyage“June 8, 1970” ship:Titanic ship:destructionDate“April 14, 1912”  following axioms hold between classes: ship:DeployedVesselrdfs:subClassOfship:Vessel ship:InServiceVesselrdfs:subClassOfship:Vessel ship:OutOfServiceVesselrdfs:subClassOfship:Vessel  Does RDFS support automatic classification of each of the ships provided in the corresponding table?

Solution  We need to infer that:  if a vessel has a maiden voyage, then it is a ship:DeployedVessel  if next departure date is set, then it is a ship:InserviceVessel  if it has decommission date or destruction date, then it is a ship:OutOfService ship:maidenVoyagerdfs:domainship:DeployedVessel ship:nextDeparturerdfs:domainship:InServiceVessel ship:decommisionDaterdfs:domainship:OutOfServiceVessel ship:destructionDaterdfs:domainship:OutOfServiceVessel Using rdfs:domain we can achieve the automatic classification

Exercise 8  In the table below we can see that the ships have commanders. How can we assert that the commander of a ship is a Captain? NameMaiden Voyage Next Departure Commander MV 16May 23, 2001 November 29, 2013 John MV 22June 8, 1970 Alessandro Table: Ships

Solution  Ranks of the officers can be classified as follows: ship:Captain rdfs:subClassOfship:Officer ship:Lieutenant rdfs:subClassOfship:Officer ship:Ensign rdfs:subClassOfship:Officer It can be expressed that the commander of a ship has rank Captain with rdfs:range: ship:hasCommander rdfs:rangeship:Captain