An Inference Engine for RDF

Total Page:16

File Type:pdf, Size:1020Kb

An Inference Engine for RDF An inference engine for RDF An inference engine for RDF Master thesis G. Naudts 30 october 2003 Open University of the Netherlands Agfa Gevaert 1 An inference engine for RDF 2 An inference engine for RDF This document is the Master Thesis made as a part of my Master Degree in Computer Science Education (Software Systems) at the Open University of the Netherlands. The work has been done in collaboration with the research department of the company Agfa in Mortsel Belgium. Student data Name Guido Naudts Student number 831708907 Address Secretarisdreef 5 2288 Bouwel Telephone work 0030-2-542.76.01 Home 0030-14-51.32.43 E-mail [email protected] Coaching and graduation committee Chairman: dr J.T. Jeuring, professor at the Open University Secretary : ir. F.J. Wester, senior lecturer at the Open University Coach: ir. J. De Roo, researcher at Agfa Gevaert. 3 An inference engine for RDF Acknowledgements I want to thank Ir. J. De Roo for giving me the opportunity for making a thesis about a tremendous subject and his guidance in the matter. Prof. J. T. Jeuring and Ir. F. J. Wester are thanked for their efforts to help me produce a readable and valuable text. I thank M. P. Jones for his Prolog demo in the Hugs distribution that has been very helpful. I thank all the people from the OU for their efforts during the years without which this work would not have been possible. I thank my wife and children for supporting a father seated behind his computer during many years. 4 An inference engine for RDF An inference engine for RDF ...................................................................1 Summary ..................................................................................................................................11 Samenvatting............................................................................................................................13 Chapter 1. Introduction...........................................................................................................15 1.1. Overview .......................................................................................................................................... 15 1.2. Case study............................................................................................................................................. 15 1.2.1. Introduction ......................................................................................................................................... 15 1.2.2. The case study ..................................................................................................................................... 15 1.2.3. Conclusions of the case study.............................................................................................................. 17 1.3. Research goals...................................................................................................................................... 17 1.3.1. Standards............................................................................................................................................. 17 1.3.2. Research questions .............................................................................................................................. 18 1.4. Research methods ................................................................................................................................ 19 1.5. The basic material................................................................................................................................ 20 1.6. Related work ........................................................................................................................................ 20 1.7. Outline of the thesis ............................................................................................................................. 21 Chapter 2. Preliminaries .........................................................................................................22 2.1. Introduction.......................................................................................................................................... 22 2.2. XML and namespaces ......................................................................................................................... 22 2.2.1. Definition ............................................................................................................................................ 22 2.2.2. Features ............................................................................................................................................... 22 2.3. URI’s and URL’s ................................................................................................................................. 24 2.3.1. Definitions........................................................................................................................................... 24 2.3.2. Features ............................................................................................................................................... 24 2.4. Resource Description Framework RDF............................................................................................. 25 2.4.1. Introduction ......................................................................................................................................... 25 2.4.2. Verifiability of a triple......................................................................................................................... 26 2.4.3. The graph syntax ................................................................................................................................. 26 2.4.4. Conclusion........................................................................................................................................... 27 2.5. Notation 3 ............................................................................................................................................. 27 2.5.1. Introduction ......................................................................................................................................... 27 2.5.2. Basic properties................................................................................................................................... 27 2.6. The logic layer...................................................................................................................................... 28 2.7. Semantics of N3.................................................................................................................................... 29 2.7.1. Introduction ......................................................................................................................................... 29 2.7.2. The model theory of RDF ................................................................................................................... 29 2.7.3. Examples ............................................................................................................................................. 30 2.8. RDFProlog............................................................................................................................................ 30 2.8.1. Introduction ......................................................................................................................................... 30 2.8.2. Syntax.................................................................................................................................................. 31 2.9. A global view of the Semantic Web .................................................................................................... 31 2.9.1. Introduction. ........................................................................................................................................ 31 2.9.2. The layers of the Semantic Web.......................................................................................................... 31 3. Related work.........................................................................................................................34 3.1. Automated reasoning........................................................................................................................... 34 5 An inference engine for RDF 3.1.1. Introduction ......................................................................................................................................... 34 3.1.2. General remarks .................................................................................................................................. 34 3.1.3. Reasoning using resolution techniques................................................................................................ 35 3.1.4. Backward and forward reasoning........................................................................................................ 37 3.1.5. Other mechanisms ............................................................................................................................... 38 3.1.6. Theorem provers ................................................................................................................................. 38 3.1.7. Conclusion........................................................................................................................................... 39 3.2. Logic.....................................................................................................................................................
Recommended publications
  • RDF Query Languages Need Support for Graph Properties
    RDF Query Languages Need Support for Graph Properties Renzo Angles1, Claudio Gutierrez1, and Jonathan Hayes1,2 1 Dept. of Computer Science, Universidad de Chile 2 Dept. of Computer Science, Technische Universit¨at Darmstadt, Germany {rangles,cgutierr,jhayes}@dcc.uchile.cl Abstract. This short paper discusses the need to include into RDF query languages the ability to directly query graph properties from RDF data. We study the support that current RDF query languages give to these features, to conclude that they are currently not supported. We propose a set of basic graph properties that should be added to RDF query languages and provide evidence for this view. 1 Introduction One of the main features of the Resource Description Framework (RDF) is its ability to interconnect information resources, resulting in a graph-like structure for which connectivity is a central notion [GLMB98]. As we will argue, basic concepts of graph theory such as degree, path, and diameter play an important role for applications that involve RDF querying. Considering the fact that the data model influences the set of operations that should be provided by a query language [HBEV04], it follows the need for graph operations support in RDF query languages. For example, the query “all relatives of degree 1 of Alice”, submitted to a genealogy database, amounts to retrieving the nodes adjacent to a resource. The query “are suspects A and B related?”, submitted to a police database, asks for any path connecting these resources in the (RDF) graph that is stored in this database. The query “what is the Erd˝osnumber of Alberto Mendelzon”, submitted to (a RDF version of) DBLP, asks simply for the length of the shortest path between the nodes representing Erd˝osand Mendelzon.
    [Show full text]
  • Common Sense Reasoning with the Semantic Web
    Common Sense Reasoning with the Semantic Web Christopher C. Johnson and Push Singh MIT Summer Research Program Massachusetts Institute of Technology, Cambridge, MA 02139 [email protected], [email protected] http://groups.csail.mit.edu/dig/2005/08/Johnson-CommonSense.pdf Abstract Current HTML content on the World Wide Web has no real meaning to the computers that display the content. Rather, the content is just fodder for the human eye. This is unfortunate as in fact Web documents describe real objects and concepts, and give particular relationships between them. The goal of the World Wide Web Consortium’s (W3C) Semantic Web initiative is to formalize web content into Resource Description Framework (RDF) ontologies so that computers may reason and make decisions about content across the Web. Current W3C work has so far been concerned with creating languages in which to express formal Web ontologies and tools, but has overlooked the value and importance of implementing common sense reasoning within the Semantic Web. As Web blogging and news postings become more prominent across the Web, there will be a vast source of natural language text not represented as RDF metadata. Common sense reasoning will be needed to take full advantage of this content. In this paper we will first describe our work in converting the common sense knowledge base, ConceptNet, to RDF format and running N3 rules through the forward chaining reasoner, CWM, to further produce new concepts in ConceptNet. We will then describe an example in using ConceptNet to recommend gift ideas by analyzing the contents of a weblog.
    [Show full text]
  • Use Style: Paper Title
    IJRECE VOL. 6 ISSUE 2 APR.-JUNE 2018 ISSN: 2393-9028 (PRINT) | ISSN: 2348-2281 (ONLINE) A Review on Reasoning System, Types and Tools and Need for Hybrid Reasoning Goutami M.K1, Mrs. Rashmi S R2, Bharath V3 1M.Tech, Computer Network Engineering, Dept. of Computer Science and Engineering, Dayananda Sagar college of Engineering, Bangalore. (Email: [email protected]) 2Asst. Professor, Dept. of Computer Science and Engineering, Dayananda Sagar college of Engineering , Bangalore. (Email: [email protected]) 3Dept. of Computer Science and Engineering, Dayananda Sagar college of Engineering, Bangalore Abstract— Expert system is a programming system which knowledge base then we require a programming system that utilizes the information of expert knowledge of the specific will facilitate us to access the knowledge for reasoning purpose domain to make decisions. These frameworks are intended to and helps in decision making and problem solving. Inference tackle complex issues by thinking through the learning process engine is an element of the system that applies logical rules to called as reasoning. The knowledge used for reasoning is the knowledge base to deduce new information. User interface represented mainly as if-then rules. Expert system forms a is one through which the user can communicate with the expert significant part in day-to-day life nowadays as it emulates the system. expert’s behavior in analyzing the information and concludes “A reasoning system is a software system that uses available knowledge, applies logical techniques to generate decision. This paper primarily centers on the reasoning system conclusions”. It uses logical techniques such as deduction which plays the fundamental part in field of artificial approach and induction approach.
    [Show full text]
  • I-SEMANTICS '08: International Conference on Semantic Systems
    A Service of Leibniz-Informationszentrum econstor Wirtschaft Leibniz Information Centre Make Your Publications Visible. zbw for Economics Auer, Sören (Ed.); Schaffert, Sebastian (Ed.); Pellegrini, Tassilo (Ed.) Proceedings — Published Version I-SEMANTICS '08: International conference on semantic systems Suggested Citation: Auer, Sören (Ed.); Schaffert, Sebastian (Ed.); Pellegrini, Tassilo (Ed.) (2008) : I-SEMANTICS '08: International conference on semantic systems, Verlag der Technischen Universität Graz, Graz This Version is available at: http://hdl.handle.net/10419/44448 Standard-Nutzungsbedingungen: Terms of use: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Documents in EconStor may be saved and copied for your Zwecken und zum Privatgebrauch gespeichert und kopiert werden. personal and scholarly purposes. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle You are not to copy documents for public or commercial Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich purposes, to exhibit the documents publicly, to make them machen, vertreiben oder anderweitig nutzen. publicly available on the internet, or to distribute or otherwise use the documents in public. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, If the documents have been made available under an Open gelten abweichend von diesen Nutzungsbedingungen die in der dort Content Licence (especially Creative Commons Licences), you genannten Lizenz gewährten Nutzungsrechte. may exercise further usage rights as specified in the indicated licence. www.econstor.eu I-SEMANTICS ’08 International Conference on Semantic Systems Preface 1 S. Auer, S. Schaffert, T. Pellegrini Wikis in Global Businesses 4 P. Kemper Managing Knowledge that Everybody Knows Already 5 H. Lieberman Humans and the Web of Data 6 T.
    [Show full text]
  • N3logic: a Logical Framework for the World Wide Web 3 Order Logic Presents Problems Such As Paradox Traps
    Under consideration for publication in Theory and Practice of Logic Programming 1 N3Logic: A Logical Framework For the World Wide Web Tim Berners-Lee, Dan Connolly, Lalana Kagal, Yosi Scharf Computer Science and Artificial Intelligence lab Massachusetts Institute of Technology {timbl, connolly, lkagal, syosi}@csail.mit.edu Jim Hendler Rensselaer Polytechnic Institute [email protected] submitted 13 May 2006; revised 11 Sep 2007; accepted 18 October 2007 Abstract The Semantic Web drives towards the use of the Web for interacting with logically in- terconnected data. Through knowledge models such as Resource Description Framework (RDF), the Semantic Web provides a unifying representation of richly structured data. Adding logic to the Web implies the use of rules to make inferences, choose courses of action, and answer questions. This logic must be powerful enough to describe complex properties of objects but not so powerful that agents can be tricked by being asked to consider a paradox. The Web has several characteristics that can lead to problems when existing logics are used, in particular, the inconsistencies that inevitably arise due to the openness of the Web, where anyone can assert anything. N3Logic is a logic that allows rules to be expressed in a Web environment. It extends RDF with syntax for nested graphs and quantified variables and with predicates for implication and accessing resources on the Web, and functions including cryptographic, string, math. The main goal of N3Logic is to be a minimal extension to the RDF data model such that the same language can be used for logic and data. In this paper, we describe N3Logic and illustrate through examples why it is an appropriate logic for the Web.
    [Show full text]
  • Semantic Web and the Libraries: an Overview
    Semantic Web and the Libraries: An Overview Mr. N. Yadagiri1 & Mr. P. Ramesh2 Abstract This paper discusses about the concept of semantic web, the technology, web content writing, and necessity for the development of web 3.0. The various components of semantic web technology such as HTTP, URI, RDF, XML, Ontology, W3C and other components specified as W3C standards are touched upon briefly. The benefits of implementing semantic web in the Library functions to provide effective information services and for optimum use of the Library collection are illustrated here. ______________________________________________________________________________ 1. Introduction World Wide Web is the first source of information for everyone viz., students, research scholars, faculty, practitioners, Information Officers, etc. The Information Resources on the web are in the form of Uniform Resource Identifiers (URI) and the information in them is not machine- readable. People search for the Information on a particular topic via a web portal by typing in the key words. The retrieved result consists of only few relevant ones. The search is performed by using statistical methods such as most occurrences of words, co-occurrence of words, etc. The keyword index is completely incapable of presenting relational information between concepts and the keyword search displays only the matching links. The information professionals are advocating for more advanced technology search engines which have deductive reasoning like human beings. To achieve such a system the metadata and ontologies have to be developed and are embedded into the web pages. 2. Limitations of HTML The current web is a collection of static web documents mostly written in HTML, and are either generated dynamically from databases or by user interaction.
    [Show full text]
  • N3 Rules Processing and HTML Translation for the Semantic Web
    View metadata, citation and similar papers at core.ac.uk brought to you by CORE provided by CiteSeerX N3 Rules Processing and HTML Translation for the Semantic web Chun Yip Leung Digital Media Systems Laboratory HP Laboratories Bristol HPL-2003-199 October 2nd , 2003* E-mail: [email protected] N3, The semantic web is an emerging technology that could totally change forward chained how web works. It is based on the Resource Description Framework rules, RDF (RDF) which defines graphs to represent links between data. RDF/XML translation, is the common format to store RDF graphs while N3 is another instant to semantic web represent RDF and provides powerful function like rules representation. * Internal Accession Date Only Approved for External Publication ã Copyright Hewlett-Packard Company 2003 N3 Rules Processing and HTML Translation for the Semantic web Author: Chun Yip Leung ([email protected]) Keyword: N3; Forward Chained Rules; RDF Translation; Semantic Web Abstract The semantic web is an emerging technology that could totally change how web works. It is based on the Resource Description Framework (RDF) [0] which defines graphs to represent link s between data. RDF/XML is the common format to store RDF graphs while N3 is another instant to represent RDF and provides powerful function like rules representation. In this report we will discuss how to connect N3 rules to the Jena2’s rule processing system and also use the new system to solve the visual representation problem on browsing RDF. Acknowledgements This report and the project I have been working on within my six-month placement in Hewlett-Packard Labs Bristol gave my invaluable experience and I would like to say thank you to the Jena development team, especially Andy Seaborne, Chris Dollin and Dave Reynolds who gave me many advice throughout.
    [Show full text]
  • Using RDF for Home Network Configuration
    ☞ ☞ SWAD-Europe: WP11.1: Using RDF for Home Network Configuration Project name: Semantic Web Advanced Development for Europe (SWAD-Europe) Project Number: IST-2001-34732 Workpackage name: WP 11: Distributed Trust Systems Workpackage description: ☞http://www.w3.org/2001/sw/Europe/plan/workpackages/live/esw-wp-11.html Deliverable title: Framework for Security and Trust Standards URI: Authors: ☞Graham Klyne, Ninebynine.org. ☞Brian Matthews, CCLRC. Abstract: This memo describes the use of RDF metadata in configuring Internet access from a home network. Its goal is to demonstrate the practical applicability of common semantic web technologies in a simple real-world based scenario. The work has been inspired in part by an architectural proposal for XML network configuration submitted to the IETF. Status: First draft: 2002-12-22 Deliverable release: 2004-06-15 Comments on this document should be sent to the public SWAD-Europe mailing list, ☞[email protected], ☞1. Introduction ☞1.1 Structure of this memo ☞2. Background ☞3. Vocabulary for network user access policies ☞3.1 A note about access permission logic ☞4. Vocabulary for network address configuration ☞5. Vocabulary for network device configuration ☞6. Rules for creating configuration data ☞7. Templates for creating configuration files ☞8. Conclusions ☞8.1 Some lessons learned ☞8.2 Ideas for better inference capabilities ☞8.3 Further work ☞9. Acknowledgements ☞§ References ☞§ Author's Address ☞A. Revision history ☞B. Unresolved issues 1. Introduction - This memo describes the use of RDF metadata in configuring ☞ TOC Internet access from a home network. Its goal is to illustrate the practical applicability of common semantic web technologies in a simple real-world based scenario.
    [Show full text]
  • A Semantic Web Approach to Digital Rights Management
    A Semantic Web approach to Digital Rights Management by Roberto García González Ph.D. Thesis Doctorate in Computer Science and Digital Communication Department of Technologies Advisor: Dr. Jaime Delgado Mercé Universitat Pompeu Fabra Barcelona, November 2005 Dipòsit legal: B.26401-2007 ISBN: 978-84-690-7821-1 A Rosa Acknowledgments Gracias Rosa, sin ti esta tesis no hubiese visto la luz. Gracias a mis padres, hermana, abuelos, tíos... siempre me habéis motivado a seguir. Recién acabada la presentación del proyecto final de carrera ya me preguntabais por lo que vendría des- pués. Gracias a mi director de tesis, Jaime Delgado, sobretodo por aquella recomendación a finales de 1999 sobre que me mirase algo llamado RDF... ahí empezó todo. I would also like to acknowledge the following people. Aldo Gangemi, Jos Lehmann, Carola Cate- nacci, Massimiliano Ciaramita, Daniela Tiscornia and Maria Teresa Sagri for their feedback during the Legal Modelling Seminar held in Rome on June 2005. John F. Sowa for his encouraging com- ment about the "State of the Art" part. And Adam Pease for his comments about the mapping to SUMO. Abstract In order to improve the management of copyright in the Internet, known as Digital Rights Manage- ment, there is the need for a shared language for copyright representation. Current approaches are based on purely syntactic solutions, i.e. a grammar that defines a rights expression language. These languages are difficult to put into practice due to the lack of explicit semantics that facilitate its im- plementation. Moreover, they are simple from the legal point of view because they are intended just to model the usage licenses granted by content providers to end-users.
    [Show full text]
  • Semantic Web Tutorial Using N3
    Semantic Web Tutorial Using N3 Tim Berners-Lee Dan Connolly Sandro Hawke For Presentaton May 20, 2003 http://www.w3.org/2000/10/swap/doc/ Semantic Web Tutorial Using N3 Table of Contents Semantic Web Tutorial Using N3 . 1 1 Semantic Web Tutorial Using N3 . 1 Primer - Getting into the semantic web and RDF using N3 . 2 2 Primer: Getting into RDF & Semantic Web using N3 . 2 2.1 Subject, verb and object . 2 2.2 Sharing concepts . 3 2.3 Making vocabularies . 4 Shorthand: Paths and lists . 6 3 Shorthand: Paths and lists . 6 3.1 Paths . 6 3.2 Lists . 7 Vocabulary Documentation . 8 4 Vocabulary Documentation . 8 4.1 Plain Documentation . 8 4.2 Equivalence . 8 4.3 Cardinality . 9 4.4 Different and Disjoint . 9 4.5 Class Hierarchies . 9 4.6 Domain, Range . 9 Rules and Formulae . 10 5 Rules and Formulae . 10 5.1 Variables . 10 5.2 Variables with ? and _: . 11 5.3 Shorthand symbols for implies, etc. 11 Processing your data using N3 and Cwm . 12 6 Processing your data using N3 and Cwm . 12 6.1 Converting data format . 12 6.2 Merging data . 13 6.3 Filtering: when you have too much data . 14 6.4 Report Generation . 15 6.5 Debugging . 16 6.6 Tips . 16 6.7 More . 16 Tutorial - Built-in functions in cwm . 17 7 Built-in functions in Cwm . 17 Trust . 19 8 Trust . 19 8.1 Delegated authority . 19 8.2 Conclusion . 23 Semantic Web Application Integration: Travel Tools . 24 9 Semantic Web Application Integration: Travel Tools .
    [Show full text]
  • Reasoning Strategies for Semantic Web Rule
    Reasoning Strategies for Semantic Web Rule Languages MASSACHUSIETS MASSACHUSETTS INSTITUTE INSTI OF TECHNOOSUy r.: ECHN-1OGY by NOV 13 2008 NOV 13 2008 Joseph Scharf LIBRARIES S.B. C.S., M.I.T., 2007 LIBRARIES Submitted to the Department of Electrical Engineering and Computer Science in partial fulfillment of the requirements for the degree of Master of Engineering in Electrical Engineering and Computer Science at the MASSACHUSETTS INSTITUTE OF TECHNOLOGY September 2008 @ Massachusetts Institute of Technology 2008. All rights reserved. Author.. De wment of Electrical Engineering and Computer Science August 22, 2008 Certified by......................... Tim Berners-Lee Professor, Electrical Engineering and Computer Science xJ Thesis Supervisor Certified by.... Lalana Kagal Research Scientist, Com r Sciej ci d Artificlal ntelligence Lab Reader Accepted by. ..............ith Art r C. Smith Chairman, Department Committee on Graduate Theses AR.IIt\vQ Reasoning Strategies for Semantic Web Rule Languages by Joseph Scharf Submitted to the Department of Electrical Engineering and Computer Science on August 22, 2008, in partial fulfillment of the requirements for the degree of Master of Engineering in Electrical Engineering and Computer Science Abstract Dealing with data in open, distributed environments is an increasingly important problem today. The processing of heterogeneous data in formats such as RDF is still being researched. Using rules and rule engines is one technique that is being used. In doing so, the problem of handling heterogeneous rules from multiple sources becomes important. Over the course of this thesis, I wrote several kinds of reasoners including backward, forward, and hybrid reasoners for RDF rule languages. These were used for a variety of problems and data in a wide range of settings for solving real world problems.
    [Show full text]
  • Inference Rules for RDF(S) and OWL in N3logic Dominik Tomaszuk Institute of Computer Science University of Bialystok Poland Email: [email protected]
    1 Inference rules for RDF(S) and OWL in N3Logic Dominik Tomaszuk Institute of Computer Science University of Bialystok Poland Email: [email protected] Abstract—This paper presents inference rules for Resource infinite) set of blank nodes, L the set of literals. An RDF triple Description Framework (RDF), RDF Schema (RDFS) and Web t is defined as a triple t = hs; p; oi where s 2 I [ B is called Ontology Language (OWL). Our formalization is based on the subject, p 2 I is called the predicate and o 2 I [ B [ L Notation 3 Logic, which extended RDF by logical symbols and created Semantic Web logic for deductive RDF graph stores. We is called the object. also propose OWL-P that is a lightweight formalism of OWL and The elemental constituents of the RDF data model are RDF supports soft inferences by omitting complex language constructs. terms that can be used in reference to resources: anything with identity. The set of RDF terms is divided into three disjoint subsets: IRIs, literals, and blank nodes. I. INTRODUCTION Definition 2 (IRIs). IRIs serve as global identifiers that can Resource Description Framework (RDF) is a general be used to identify any resource. method for conceptual description or modeling of information that is implemented in web resources. RDF Schema (RDFS) Definition 3 (Literals). Literals are a set of lexical values. It extends RDF to classes providing basic elements for the can be a set of plain strings, such as "Apple", optionally description of vocabularies. OWL adds more vocabulary for with an associated language tag, such as "Apple"@en.
    [Show full text]