Knowledge Representation RDF Turtle Namespace

Similar documents
Knowledge Representation VII - IKT507. SPARQL stands for SPARQL Protocol And RDF Query Language

SPARQL. Part III. Jan Pettersen Nytun, UiA

Reasoning with Rules SWRL as Example. Jan Pettersen Nytun, UIA

2. RDF Semantic Web Basics Semantic Web

Comparison of Semantic Web serialization syntaxes

Knowledge Representation. Apache Jena Part II. Jan Pettersen Nytun, UiA

RDF Storage and Retrieval Systems. Jan Pettersen Nytun, UiA

Short notes about OWL 1

Appendix B: The LCA ontology (lca.owl)

RDF Storage and Retrieval Systems. Jan Pettersen Nytun, UiA

Ontological Modeling: Part 15

ISWC 2017 Tutorial: Semantic Data Management in Practice

RDF /RDF-S Providing Framework Support to OWL Ontologies

An Introduction to the Semantic Web. Jeff Heflin Lehigh University

COMBINING X3D WITH SEMANTIC WEB TECHNOLOGIES FOR INTERIOR DESIGN

Semantic Information Retrieval: An Ontology and RDFbased

The Semantic Web. What is the Semantic Web?

KNOWLEDGE GRAPHS. Lecture 3: Modelling in RDF/Introduction to SPARQL. TU Dresden, 30th Oct Markus Krötzsch Knowledge-Based Systems

FHIR RDF Sample side by side comparisons

SPARQL Query Examples

KNOWLEDGE GRAPHS. Lecture 2: Encoding Graphs with RDF. TU Dresden, 23th Oct Markus Krötzsch Knowledge-Based Systems

Semantic Web In Depth: Resource Description Framework. Dr Nicholas Gibbins 32/4037

SADI Semantic Web Services

Ontological Modeling: Part 2

Building Blocks of Linked Data

Solving problem of semantic terminology in digital library

Tony Mallia Edmond Scientific

Querying the Semantic Web

From the Web to the Semantic Web: RDF and RDF Schema

Formalising the Semantic Web. (These slides have been written by Axel Polleres, WU Vienna)

Generating of RDF graph from a relational database using Jena API

An RDF-based Distributed Expert System

RDF. Dr. Mustafa Jarrar. Knowledge Engineering (SCOM7348) University of Birzeit

Web Document Compaction by Compressing URI references in RDF and OWL Data

2. Knowledge Representation Applied Artificial Intelligence

Modeling LMF compliant lexica in OWL-DL

Semantic challenges in sharing dataset metadata and creating federated dataset catalogs

Contents. G52IWS: The Semantic Web. The Semantic Web. Semantic web elements. Semantic Web technologies. Semantic Web Services

<?xml version='1.0' encoding='iso '?> <!DOCTYPE rdf:rdf [ <!ENTITY rdf ' <!

SEMANTIC WEB 03 RDF DATA MODEL RESOURCE DESCRIPTION FRAMEWORK IMRAN IHSAN ASSISTANT PROFESSOR, AIR UNIVERSITY, ISLAMABAD

Introduction to Semantic Web Databases. Version 1 Prepared By: Amgad Madkour Ph.D. Candidate Purdue University April 2018

Semantic Web Engineering

The P2 Registry

3. Queries Applied Artificial Intelligence Prof. Dr. Bernhard Humm Faculty of Computer Science Hochschule Darmstadt University of Applied Sciences

RDF. Mario Arrigoni Neri

Table of Contents. iii

RESOURCES DESCRIPTION FRAMEWORK: RDF

BUILDING THE SEMANTIC WEB

An Alternative CIM Modeling Approach using JSON-LD

Final Exam. Semantic Web Wiltrud Kessler WS 2014/15. Please do not forget to write your name or initials on every sheet you hand in.

INF3580/4580 MANDATORY EXERCISE no. 2

Semantic Technologies and CDISC Standards. Frederik Malfait, Information Architect, IMOS Consulting Scott Bahlavooni, Independent

Bachelorarbeit. Übersetzung von Aktionen auf semantischer Ebene in einem RDF Web Service

Protégé-2000: A Flexible and Extensible Ontology-Editing Environment

Energy-related data integration using Semantic data models for energy efficient retrofitting projects

Data management and integration

SPARQL: An RDF Query Language

Semantic Days 2011 Tutorial Semantic Web Technologies

BBF RFC 30: Draft of an RDF-based framework for the exchange and integration of Synthetic Biology data

Abstract. The report is written in english. Keywords: Linked Data, Clinical Data, Semantic Web, AstraZeneca, RDF, OWL, SPARQL, Jena

JSON-LD and MongoDB. Gregg Kellogg. Powering Linked Web Monday, August 20, 12

Semantic Web Technologies: Assignment 1. Axel Polleres Siemens AG Österreich

OWL DL / Full Compatability

RuleML and SWRL, Proof and Trust

H1 Spring B. Programmers need to learn the SOAP schema so as to offer and use Web services.

The Formal Syntax and Semantics of Web-PDDL

Web Science & Technologies University of Koblenz Landau, Germany RDF. Steffen Staab. Semantic Web

Using RDF to Model the Structure and Process of Systems

Profiles Research Networking Software API Guide

RDFS. Suresh Manandhar* & Dimitar Kazakov

Chapter 3. RDF Schema

Deep integration of Python with Semantic Web technologies

Developing markup metaschemas to support interoperation among resources with different markup schemas

Multi-agent Semantic Web Systems: RDF Models

Linked Data: What Now? Maine Library Association 2017

Rules, RIF and RuleML

Fuseki Server Installation

Transforming Data from into DataPile RDF Structure into RDF

Chapter 13: Advanced topic 3 Web 3.0

Keeping modular and platformindependent. benefits from the Semantic Web

Web 2.0 Lecture 8: Resource Description Framework

Semantic Web Fundamentals

Publishing OWL ontologies with Presto

User and Reference Manual

Chapter 2 AN INTRODUCTION TO THE OWL WEB ONTOLOGY LANGUAGE 1. INTRODUCTION. Jeff Heflin Lehigh University

Day 2. RISIS Linked Data Course

Mapping Relational Data to RDF with Virtuoso's RDF Views

Semantic Web and Python Concepts to Application development

Semantic Web. MPRI : Web Data Management. Antoine Amarilli Friday, January 11th 1/29

RKB, sameas and dotac

Linked Data Semantic Web Technologies 1 (2010/2011)

Orchestrating Music Queries via the Semantic Web

Intro to XML. Borrowed, with author s permission, from:

SPARQL. Fausto Giunchiglia and Mattia Fumagallli. University of Trento

SWAD-Europe Deliverable 8.1 Core RDF Vocabularies for Thesauri

Linked Data and RDF. COMP60421 Sean Bechhofer

RDF Graph Data Model

Integration of the Semantic Web with Meta Object Facilities

Jena.

RDF Schema. Philippe Genoud, UFR IM2AG, UGA Manuel Atencia Arcas, UFR SHS, UGA

Transcription:

Knowledge Representation RDF Turtle Namespace Jan Pettersen Nytun, UiA 1

URIs Identify Web Resources Web addresses are the most common URIs, i.e., uniform Resource Locators (URLs). RDF resources are usually named by URI references (URIrefs). URIref = URI + optional fragment identifier at the end. E.g., http://www.example.org/people#tom were http://www.example.org/people = URL tom = fragment identifier http://www.example.org/people# = namespace Jan Pettersen Nytun, UIA, page 2

Full URLs are long. We can define a namespace prefix so we don t have to write the long common part of the URI. @prefix rdf: <http://www.w3.org/1999/02/22-rdfsyntax-ns#>. <http://www.uia.no/janpettersen/pet> rdf:type owl:ntology. Jan Pettersen Nytun, UiA, page 3

tandard Namespace For RDF Predefined Terms rdf: Indicates identifiers used in RDF. The set of RDF identifiers is small. The global URI for the rdf namespace is: http://www.w3.org/1999/02/22-rdf-syntax-ns# If you open http://www.w3.org/1999/02/22-rdf-syntax-ns (e.g., in Internet Explorer) you may see the list of RDF identifiers. Jan Pettersen Nytun, UIA, page 4

imple Example Jan Pettersen Nytun, UiA, page 5

@prefix : <http://www.uia.no/janpettersen/pet#>. @prefix owl: <http://www.w3.org/2002/07/owl#>. @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. @prefix xml: <http://www.w3.org/xml/1998/namespace>. @prefix xsd: <http://www.w3.org/2001/xmlchema#>. @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>. @base <http://www.uia.no/janpettersen/pet>. <http://www.uia.no/janpettersen/pet> rdf:type owl:ntology. ################################################################# # Classes ################################################################# ### http://www.uia.no/janpettersen/pet#omeclass :omeclass rdf:type owl:class. Jan Pettersen Nytun, UiA, page 6

aving as JN-LD [ { "@id" : "http://www.uia.no/janpettersen/pet", "@type" : [ "http://www.w3.org/2002/07/owl#ntology" ] }, { "@id" : "http://www.uia.no/janpettersen/pet#omeclass", "@type" : [ "http://www.w3.org/2002/07/owl#class" ] } ] Jan Pettersen Nytun, UiA, page 7

Any URI identifier starting with : will be in the default namespace. Jan Pettersen Nytun, UiA, page 8

Protégé automatically defines a default namespace corresponding to the IRI of the ontology. @prefix : <http://www.uia.no/janpettersen/pet#>. @prefix owl: <http://www.w3.org/2002/07/owl#>. @base <http://www.uia.no/janpettersen/pet>. ### http://www.uia.no/janpettersen/pet#omeclass :omeclass rdf:type owl:class. Here the default namespace is used. Jan Pettersen Nytun, UiA, page 9

The @base Directive The @base directive sets the base URI to be used for the parsing of relative URIs. Jan Pettersen Nytun, UiA, page 10

Assume: @prefix : <http://www.uia.no/janpettersen/pet#>. @prefix owl: <http://www.w3.org/2002/07/owl#>. @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. @prefix xml: <http://www.w3.org/xml/1998/namespace>. @prefix xsd: <http://www.w3.org/2001/xmlchema#>. @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>. @base <http://www.uia.no/testing/>. <http://www.uia.no/janpettersen/pet> rdf:type owl:ntology. :omeclass rdf:type owl:class. <TestClass> rdf:type owl:class. How will these be resolved? Jan Pettersen Nytun, UiA, page 11

Continue @prefix : <http://www.uia.no/janpettersen/pet#>. @base <http://www.uia.no/testing/>. :omeclass rdf:type owl:class. <TestClass> rdf:type owl:class. JN-DL utput: [ { "@id" : "http://www.uia.no/janpettersen/pet", "@type" : [ "http://www.w3.org/2002/07/owl#ntology" ] }, { "@id" : "http://www.uia.no/janpettersen/pet#omeclass", "@type" : [ "http://www.w3.org/2002/07/owl#class" ] }, { "@id" : "http://www.uia.no/testing/testclass", "@type" : [ "http://www.w3.org/2002/07/owl#class" ] } ] Jan Pettersen Nytun, UiA, page 12

It seems @base can not be set in Protégé; it is automatically set to the same as the ntology IRI Jan Pettersen Nytun, UiA, page 13

Merging Graphs [3]: When is a node in one graph the same node as a node in another graph? In RDF, this is solved through the use of Uniform Resource Identifiers (URIs). Jan Pettersen Nytun, UIA, page 14

Graph Merging The application is quite simple: A node from one graph is merged with a node from another graph exactly, if they have the same URI. [ref. emanueledellavalle.org]: Jan Pettersen Nytun, UIA, page 15

RDF Identifier rdf:type [Ref. http://www.w3.org/tr/2014/rec-rdf-schema-20140225/]: Jan Pettersen Nytun, UIA, page 16

rdf:type in http://www.w3.org/1999/02/22-rdf-syntax-ns rdf:type is mostly being described by RDF constructs, e.g., rdfs:domain. Jan Pettersen Nytun, UIA, page 17