RISIS Linked Data Course Overview of the Course: Friday

Total Page:16

File Type:pdf, Size:1020Kb

RISIS Linked Data Course Overview of the Course: Friday Day 2 RISIS Linked Data Course Overview of the Course: Friday 9:00-9:15 Coffee 9:15-9:45 Introduction & Reflection 10:30-11:30 SPARQL Query Language 11:30-11:45 Coffee 11:45-12:30 SPARQL Hands-on 12:30-13:30 Lunch 13:30-14:00 Linksets & Lenses for Aligning Datasets 14:00-14:30 Linked Data Publishing 14:30-14:45 Coffee 14:45-16:00 Data Publishing Hands-On 16:00-17:00 Actual Research SPARQL Query Language Rinke Hoekstra, [email protected] Questions Goals • How can we query Linked Data • Know the syntax of SPARQL • What is the syntax of SPARQL • Understand how to query Linked Data on the Web • How can we use SPARQL • Know about standard vocabularies in Linked Data Deep Breath by Tomas A RDF - Where is it? • As separate files, e.g. as .ttl, .rdf, .nt, etc. • Integrated with Web pages (RDFa/Microdata) • Accessible through content negotiation curl -L -H "Accept: text/turtle" "http://dbpedia.org/resource/Inside_Out_(2015_film)" curl -L -H "Accept: text/html" "http://dbpedia.org/resource/Inside_Out_(2015_film)" • In RDF-specific databases called triple stores • A standard HTTP REST API for querying using the SPARQL language • This API is called a SPARQL endpoint SPARQL - The SPARQL Protocol and RDF Query Language • The SPARQL Protocol specifies how to query Triple stores over HTTP • The SPARQL Query Language specifies a syntax for writing queries • There are six types of queries SELECT, CONSTRUCT, INSERT, DELETE, ASK, DESCRIBE ? http://www.w3.org/TR/sparql11-query SPARQL - Query Syntax PREFIX: the namespace prefixes used in the SPARQL query PREFIX dbo: <http://dbpedia.org/ontology/> SELECT ?city WHERE { ?city dbo:areaCode "020". } LIMIT 10 SELECT: the entities (variables) you want to return WHERE: the (sub)graph you want to get information from ... including additional constraints on results (using operators) http://www.w3.org/TR/sparql11-query SPARQL - Graph Pattern • The WHERE clause specifies a graph pattern • … that should be matched • … can match multiple times • A graph pattern is an RDF graph with some nodes & edges as variables dbo:Country "020"^^xsd:string rdf:type ? ? dbo:capital ? SPARQL - Triple Patterns • A graph pattern consists of multiple triple patterns • A triple pattern is a triple with zero or more variables ?x dbo:capital dbpedia:Amsterdam . ?x dbo:capital ?y . ?x dbo:areaCode "020". ?x ?p ?y dbo:Country "020"^^xsd:string dbpedia:Netherlands rdf:type dbo:Country ; rdf:type dbo:capital dbpedia:Amsterdam . dbpedia:Amsterdam dbo:areaCode "020"dbo:areaCode. dbpedia:The_Netherlands dbo:capital dbpedia:Amsterdam SPARQL - Triple patterns form a conjunction Every triple pattern should match PREFIX dbo: <http://dbpedia.org/ontology/> dbo:Country "020"^^xsd:string SELECT ?x WHERE { ?x dbo:capital ?y . rdf:type ? ?y dbo:areaCode "020". } LIMIT 10 ? dbo:capital ? dbo:Country "020"^^xsd:string "020"^^xsd:string rdf:type dbo:areaCode dbo:areaCode dbpedia:The_Netherlands dbo:capital dbpedia:Amsterdam dbpedia:Westminster http://www.w3.org/TR/sparql11-query ✖ SPARQL - But we can also use disjunctions At least one of the graph patterns should match PREFIX dbo: <http://dbpedia.org/ontology/> SELECT ?y WHERE { { ?y dbo:areaCode "020". } UNION { ?y dbo:areaCode "010". } } LIMIT 10 "020"^^xsd:string "010"^^xsd:string dbo:areaCode dbo:areaCode dbpedia:Amsterdam dbpedia:Rotterdam http://www.w3.org/TR/sparql11-query SPARQL - Optional graphs A part of the graph pattern is optional, and does not need to match PREFIX dbo: <http://dbpedia.org/ontology/> SELECT ?x ?y WHERE { ?y dbo:areaCode "020". OPTIONAL { ?x dbo:capital ?y . } } LIMIT 10 dbo:Country "020"^^xsd:string "020"^^xsd:string rdf:type dbo:areaCode & dbo:areaCode dbpedia:The_Netherlands dbo:capital dbpedia:Amsterdam dbpedia:Westminster http://www.w3.org/TR/sparql11-query Filtering query results Tests in the FILTER clause have to be validated for matching subgraphs PREFIX dbo: <http://dbpedia.org/ontology/> SELECT ?y WHERE { ?y dbo:areaCode "020". ?y dbo:populationTotal ?x . FILTER (?x > 500000) } "020"^^xsd:string dbo:areaCode "790654"^^xsd:integer dbpedia:Amsterdam dbo:populationTotal "020"^^xsd:string dbo:areaCode http://www.w3.org/TR/sparql11-query dbpedia:Borehamwood ✖dbo:populationTotal "28546"^^xsd:integer SPARQL - Solution modifiers Sorting using ORDER BY PREFIX dbo: <http://dbpedia.org/ontology/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> DISTINCT results SELECT ?label WHERE { ?place dbo:areaCode "020"; rdfs:label ?label . PREFIX dbo: <http://dbpedia.org/ontology/> PREFIX dbpedia: <http://dbpedia.org/resource/> } ORDER BY DESC (?label) PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> SELECT DISTINCT ?name WHERE { ?country rdf:type dbo:Country ; dbo:capital ?ams . LIMITing the number of results ?ams dbo:country dbpedia:Netherlands ; rdfs:label ?name . FILTER (lang(?name) = "en" ) PREFIX dbo: <http://dbpedia.org/ontology/> } PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?label WHERE { ?y dbo:areaCode "020"; rdfs:label ?label . FILTER (lang(?label) = "en" ) } ORDER BY DESC(?label) LIMIT 10 SPARQL - Property Paths • Not interested in variable bindings • Transitively walk over the same property relation • Are interested in alternatives without having to write a UNION PREFIX dbo: <http://dbpedia.org/ontology/> PREFIX dbpedia: <http://dbpedia.org/resource/> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX skos: <http://www.w3.org/2004/02/skos/core#> SELECT DISTINCT ?name WHERE { ?country rdf:type dbo:Country ; dbo:capitalPREFIX dbo: ?city<http://dbpedia.org/ontology . /> { ?city rdfs:labelPREFIX dbpedia: ?name <http://dbpedia.org/resource/ . } > UNION PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> { ?city skos:prefLabelPREFIX skos: ?name<http://www.w3.org/2004/02/skos/core#> . } FILTER (lang(?name ) = "en" ) } SELECT DISTINCT ?name WHERE { ?country rdf:type dbo:Country ; dbo:capital/(rdfs:label|skos:prefLabel) ?name . } FILTER (lang(?name) = "en" ) } PREFIX dbo: <http://dbpedia.org/ontology/> PREFIX ex: <http://example.com/vocab/> • SELECT returns a table with CONSTRUCT { variable bindings ?y ex:kengetal "020". } WHERE { ?y dbo:areaCode "020". } • CONSTRUCT returns a RDF graph PREFIX dbo: <http://dbpedia.org/ontology/> PREFIX dbr: <http://dbpedia.org/resource/> • ASK returns true or false ASK WHERE { dbr:Amsterdam dbo:areaCode "020". } • DESCRIBE returns a RDF graph PREFIX dbr: <http://dbpedia.org/resource/> • INSERT is like CONSTRUCT, DESCRIBE dbr:Amsterdam but inserts the graph into the triple store PREFIX dbo: <http://dbpedia.org/ontology/> PREFIX ex: <http://example.com/vocab/> INSERT { ?y ex:kengetal "020". } WHERE { ?y dbo:areaCode "020". } http://www.w3.org/TR/sparql11-query SPARQL Update SPARQL - More features • Named Graphs • Negation provide context for statements they contain MINUS GRAPH <http://example.com> { … } • Functions • Aggregates IF, BOUND, EXISTS, NOT EXISTS, IN, NOT IN COUNT, SUM, MIN, MAX, AVG, GROUP_CONCAT &&, ||, =, <, >, =>, =< isIRI, isBlank, isLiteral, isNumeric, str, and SAMPLE lang, datatype STRLEN, SUBSTR, CONTAINS, CONCAT, REGEX now, year, month, day, hours, minutes, • Grouping and group aggregates seconds GROUP BY and HAVING … and more • Provide data inline VALUES http://www.w3.org/TR/sparql11-query http://yasgui.org SPARQL - Querying the Linked Data Cloud + = • DBPedia • LOD Cache: DBPedia + Geonames + NY Times + MusicBrainz + ... PREFIX dbo: <http://dbpedia.org/ontology/> PREFIX owl: <http://www.w3.org/2002/07/owl#> SELECT DISTINCT ?x ?y WHERE { ?x dbo:areaCode "020". ?y owl:sameAs ?x . FILTER (?x != ?y) } • Same query, different results! SPARQL - Summary • Linked Data is usually stored in triple stores • SPARQL is the query language for the Web of Linked Data • Queries are sent to SPARQL endpoints over HTTP • Queries describe graph patterns with variables • Graph patterns match (parts of) the RDF graphs stored in the triple store • Results are returned as a table with variable bindings (JSON, XML, TSV, CSV…) LinkedLinked Data Open LifecycleData Interlinking Authoring Enrichment Linked (Open) Data Storage/ Quality Querying Lifecycle Analysis Extraction Evolution Exploration http://stack.linkeddata.org/ Ali Khalili Designing Linked Data Applications 14 Exploration Exploration RDF - Vocabularies • The RDF vocabulary and RDFS • Geonames reserved terms needed for the data model locations • Friend of a Friend (FOAF) • Data Cube (QB) persons and relations between persons statistical data • Dublin Core (DC and DCTerms) • Simple Knowledge Organization bibliographic attributes (author, title, etc.) System (SKOS) concept hierarchies and mappings • DBPedia Ontology DBPedia is at the heart of the Web of Data • Web Ontology Language (OWL) formal constraints on class membership Exploration RDF - The RDF Vocabulary Namespace <http://www.w3.org/1999/02/22-rdf-syntax-ns#> Usual prefix rdf (NB: needs to be declared, like all others) Important elements rdf:type … links a resource to a type rdf:Resource … is the type of all resources rdf:Property … is the type of all predicates Examples geo:Amsterdam rdf:type rdf:Resource . geo:containedIn a rdf:Property . rdf:type a rdf:Property . Exploration RDFS - The RDF Schema Vocabulary Namespace <http://www.w3.org/2000/01/rdf-schema#> Usual prefix rdfs (NB: needs to be declared, like all others) Important elements rdfs:label … links a resource to its name rdfs:Class … is the type of all “types” rdfs:subClassOf … inheritance over types rdfs:subPropertyOf … inheritance over properties Examples geo:Amsterdam rdfs:label “Amsterdam”@nl . geo:containedIn rdfs:subPropertyOf
Recommended publications
  • Basic Querying with SPARQL
    Basic Querying with SPARQL Andrew Weidner Metadata Services Coordinator SPARQL SPARQL SPARQL SPARQL SPARQL Protocol SPARQL SPARQL Protocol And SPARQL SPARQL Protocol And RDF SPARQL SPARQL Protocol And RDF Query SPARQL SPARQL Protocol And RDF Query Language SPARQL SPARQL Protocol And RDF Query Language SPARQL Query SPARQL Query Update SPARQL Query Update - Insert triples SPARQL Query Update - Insert triples - Delete triples SPARQL Query Update - Insert triples - Delete triples - Create graphs SPARQL Query Update - Insert triples - Delete triples - Create graphs - Drop graphs Query RDF Triples Query RDF Triples Triple Store Query RDF Triples Triple Store Data Dump Query RDF Triples Triple Store Data Dump Subject – Predicate – Object Query Subject – Predicate – Object ?s ?p ?o Query Dog HasName Cocoa Subject – Predicate – Object ?s ?p ?o Query Cocoa HasPhoto ------- Subject – Predicate – Object ?s ?p ?o Query HasURL http://bit.ly/1GYVyIX Subject – Predicate – Object ?s ?p ?o Query ?s ?p ?o Query SELECT ?s ?p ?o Query SELECT * ?s ?p ?o Query SELECT * WHERE ?s ?p ?o Query SELECT * WHERE { ?s ?p ?o } Query select * WhErE { ?spiderman ?plays ?oboe } http://deathbattle.wikia.com/wiki/Spider-Man http://www.mmimports.com/wp-content/uploads/2014/04/used-oboe.jpg Query SELECT * WHERE { ?s ?p ?o } Query SELECT * WHERE { ?s ?p ?o } Query SELECT * WHERE { ?s ?p ?o } Query SELECT * WHERE { ?s ?p ?o } LIMIT 10 SELECT * WHERE { ?s ?p ?o } LIMIT 10 http://dbpedia.org/snorql SELECT * WHERE { ?s ?p ?o } LIMIT 10 http://dbpedia.org/snorql SELECT * WHERE { ?s
    [Show full text]
  • Mapping Spatiotemporal Data to RDF: a SPARQL Endpoint for Brussels
    International Journal of Geo-Information Article Mapping Spatiotemporal Data to RDF: A SPARQL Endpoint for Brussels Alejandro Vaisman 1, * and Kevin Chentout 2 1 Instituto Tecnológico de Buenos Aires, Buenos Aires 1424, Argentina 2 Sopra Banking Software, Avenue de Tevuren 226, B-1150 Brussels, Belgium * Correspondence: [email protected]; Tel.: +54-11-3457-4864 Received: 20 June 2019; Accepted: 7 August 2019; Published: 10 August 2019 Abstract: This paper describes how a platform for publishing and querying linked open data for the Brussels Capital region in Belgium is built. Data are provided as relational tables or XML documents and are mapped into the RDF data model using R2RML, a standard language that allows defining customized mappings from relational databases to RDF datasets. In this work, data are spatiotemporal in nature; therefore, R2RML must be adapted to allow producing spatiotemporal Linked Open Data.Data generated in this way are used to populate a SPARQL endpoint, where queries are submitted and the result can be displayed on a map. This endpoint is implemented using Strabon, a spatiotemporal RDF triple store built by extending the RDF store Sesame. The first part of the paper describes how R2RML is adapted to allow producing spatial RDF data and to support XML data sources. These techniques are then used to map data about cultural events and public transport in Brussels into RDF. Spatial data are stored in the form of stRDF triples, the format required by Strabon. In addition, the endpoint is enriched with external data obtained from the Linked Open Data Cloud, from sites like DBpedia, Geonames, and LinkedGeoData, to provide context for analysis.
    [Show full text]
  • Validating RDF Data Using Shapes
    83 Validating RDF data using Shapes a Jose Emilio Labra Gayo ​ ​ a University​ of Oviedo, Spain Abstract RDF forms the keystone of the Semantic Web as it enables a simple and powerful knowledge representation graph based data model that can also facilitate integration between heterogeneous sources of information. RDF based applications are usually accompanied with SPARQL stores which enable to efficiently manage and query RDF data. In spite of its well known benefits, the adoption of RDF in practice by web programmers is still lacking and SPARQL stores are usually deployed without proper documentation and quality assurance. However, the producers of RDF data usually know the implicit schema of the data they are generating, but they don't do it traditionally. In the last years, two technologies have been developed to describe and validate RDF content using the term shape: Shape Expressions (ShEx) and Shapes Constraint Language (SHACL). We will present a motivation for their appearance and compare them, as well as some applications and tools that have been developed. Keywords RDF, ShEx, SHACL, Validating, Data quality, Semantic web 1. Introduction In the tutorial we will present an overview of both RDF is a flexible knowledge and describe some challenges and future work [4] representation language based of graphs which has been successfully adopted in semantic web 2. Acknowledgements applications. In this tutorial we will describe two languages that have recently been proposed for This work has been partially funded by the RDF validation: Shape Expressions (ShEx) and Spanish Ministry of Economy, Industry and Shapes Constraint Language (SHACL).ShEx was Competitiveness, project: TIN2017-88877-R proposed as a concise and intuitive language for describing RDF data in 2014 [1].
    [Show full text]
  • Computational Integrity for Outsourced Execution of SPARQL Queries
    Computational integrity for outsourced execution of SPARQL queries Serge Morel Student number: 01407289 Supervisors: Prof. dr. ir. Ruben Verborgh, Dr. ir. Miel Vander Sande Counsellors: Ir. Ruben Taelman, Joachim Van Herwegen Master's dissertation submitted in order to obtain the academic degree of Master of Science in Computer Science Engineering Academic year 2018-2019 Computational integrity for outsourced execution of SPARQL queries Serge Morel Student number: 01407289 Supervisors: Prof. dr. ir. Ruben Verborgh, Dr. ir. Miel Vander Sande Counsellors: Ir. Ruben Taelman, Joachim Van Herwegen Master's dissertation submitted in order to obtain the academic degree of Master of Science in Computer Science Engineering Academic year 2018-2019 iii c Ghent University The author(s) gives (give) permission to make this master dissertation available for consultation and to copy parts of this master dissertation for personal use. In the case of any other use, the copyright terms have to be respected, in particular with regard to the obligation to state expressly the source when quoting results from this master dissertation. August 16, 2019 Acknowledgements The topic of this thesis concerns a rather novel and academic concept. Its research area has incredibly talented people working on a very promising technology. Understanding the core principles behind proof systems proved to be quite difficult, but I am strongly convinced that it is a thing of the future. Just like the often highly-praised artificial intelligence technology, I feel that verifiable computation will become very useful in the future. I would like to thank Joachim Van Herwegen and Ruben Taelman for steering me in the right direction and reviewing my work quickly and intensively.
    [Show full text]
  • Rdfa in XHTML: Syntax and Processing Rdfa in XHTML: Syntax and Processing
    RDFa in XHTML: Syntax and Processing RDFa in XHTML: Syntax and Processing RDFa in XHTML: Syntax and Processing A collection of attributes and processing rules for extending XHTML to support RDF W3C Recommendation 14 October 2008 This version: http://www.w3.org/TR/2008/REC-rdfa-syntax-20081014 Latest version: http://www.w3.org/TR/rdfa-syntax Previous version: http://www.w3.org/TR/2008/PR-rdfa-syntax-20080904 Diff from previous version: rdfa-syntax-diff.html Editors: Ben Adida, Creative Commons [email protected] Mark Birbeck, webBackplane [email protected] Shane McCarron, Applied Testing and Technology, Inc. [email protected] Steven Pemberton, CWI Please refer to the errata for this document, which may include some normative corrections. This document is also available in these non-normative formats: PostScript version, PDF version, ZIP archive, and Gzip’d TAR archive. The English version of this specification is the only normative version. Non-normative translations may also be available. Copyright © 2007-2008 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark and document use rules apply. Abstract The current Web is primarily made up of an enormous number of documents that have been created using HTML. These documents contain significant amounts of structured data, which is largely unavailable to tools and applications. When publishers can express this data more completely, and when tools can read it, a new world of user functionality becomes available, letting users transfer structured data between applications and web sites, and allowing browsing applications to improve the user experience: an event on a web page can be directly imported - 1 - How to Read this Document RDFa in XHTML: Syntax and Processing into a user’s desktop calendar; a license on a document can be detected so that users can be informed of their rights automatically; a photo’s creator, camera setting information, resolution, location and topic can be published as easily as the original photo itself, enabling structured search and sharing.
    [Show full text]
  • Linked Data Overview and Usage in Social Networks
    Linked Data Overview and Usage in Social Networks Gustavo G. Valdez Technische Universitat Berlin Email: project [email protected] Abstract—This paper intends to introduce the principles of Webpages, also possibly reference any Object or Concept (or Linked Data, show some possible uses in Social Networks, even relationships of concepts/objects). advantages and disadvantages of using it, aswell as presenting The second one combines the unique identification of the an example application of Linked Data to the field of social networks. first with a well known retrieval mechanism (HTTP), enabling this URIs to be looked up via the HTTP protocol. I. INTRODUCTION The third principle tackles the problem of using the same The web is a very good source of human-readable informa- document standards, in order to have scalability and interop- tion that has improved our daily life in several areas. By using erability. This is done by having a standard, the Resource De- rich text and hyperlinks, it made our access to information scription Framewok (RDF), which will be explained in section something more active rather than passive. But the web was III-A. This standards are very useful to provide resources that made for humans and not for machines, even though today are machine-readable and are identified by a URI. a lot of the acesses to the web are made by machines. This The fourth principle basically advocates that hyperlinks has lead to the search for adding structure, so that data is should be used not only to link webpages, but also to link more machine-readable.
    [Show full text]
  • A Visual Notation for the Integrated Representation of OWL Ontologies
    A Visual Notation for the Integrated Representation of OWL Ontologies Stefan Negru1 and Steffen Lohmann2 1Faculty of Computer Science, Alexandru Ioan Cuza University, General Berthelot 16, 700483 Iasi, Romania 2Institute for Visualization and Interactive Systems (VIS), Universit¨atsstraße 38, 70569 Stuttgart, Germany [email protected], [email protected] Keywords: Ontology Visualization, Visual Notation, OWL, Semantic Web, Knowledge Visualization, Ontologies. Abstract: The paper presents a visual notation for the Web Ontology Language (OWL) providing an integrated view on the classes and individuals of ontologies. The classes are displayed as circles, with the size of each circle representing its connectivity in the ontology. The individuals are represented as sections in the circles so that it is immediately clear from the visualization how many individuals the classes contain. The notation can be used to visualize the property relations of either the classes (conceptual layer) or of selected individuals (integrated layer), while certain elements are always shown for a better understanding. It requires only a small number of graphical elements and the resulting visualizations are comparatively compact. Yet, the notation is comprehensive, as it defines graphical representations for all OWL elements that can be reasonably visualized. The applicability of the notation is illustrated by the example of the Friend of a Friend (FOAF) ontology. 1 INTRODUCTION reasoning. Even though it provides great means to de- scribe and integrate information on the Web, its text- The Web of Data has attracted large interest for both based representation is difficult to understand for av- data publishers and consumers in the last years.
    [Show full text]
  • Mapping Between Digital Identity Ontologies Through SISM
    Mapping between Digital Identity Ontologies through SISM Matthew Rowe The OAK Group, Department of Computer Science, University of Sheffield, Regent Court, 211 Portobello Street, Sheffield S1 4DP, UK [email protected] Abstract. Various ontologies are available defining the semantics of dig- ital identity information. Due to the rise in use of lowercase semantics, such ontologies are now used to add metadata to digital identity informa- tion within web pages. However concepts exist in these ontologies which are related and must be mapped together in order to enhance machine- readability of identity information on the web. This paper presents the Social identity Schema Mapping (SISM) vocabulary which contains a set of mappings between related concepts in distinct digital identity ontolo- gies using OWL and SKOS mapping constructs. Key words: Semantic Web, Social Web, SKOS, OWL, FOAF, SIOC, PIMO, NCO, Microformats 1 Introduction The semantic web provides a web of machine-readable data. Ontologies form a vital component of the semantic web by providing conceptualisations of domains of knowledge which can then be used to provide a common understanding of some domain. A basic ontology contains a vocabulary of concepts and definitions of the relationships between those concepts. An agent reading a concept from an ontology can look up the concept and discover its properties and characteristics, therefore interpreting how it fits into that particular domain. Due to the great number of ontologies it is common for related concepts to be defined in separate ontologies, these concepts must be identified and mapped together. Web technologies such as Microformats, eRDF and RDFa have allowed web developers to encode lowercase semantics within XHTML pages.
    [Show full text]
  • Introduction Vocabulary an Excerpt of a Dbpedia Dataset
    D2K Master Information Integration Université Paris Saclay Practical session (2): SPARQL Sources: http://liris.cnrs.fr/~pchampin/2015/udos/tuto/#id1 https://www.w3.org/TR/2013/REC-sparql11-query-20130321/ Introduction For this practical session, we will use the DBPedia SPARQL access point, and to access it, we will use the Yasgui online client. By default, Yasgui (http://yasgui.org/) is configured to query DBPedia (http://wiki.dbpedia.org/), which is appropriate for our tutorial, but keep in mind that: - Yasgui is not linked to DBpedia, it can be used with any SPARQL access point; - DBPedia is not related to Yasgui, it can be queried with any SPARQL compliant client (in fact any HTTP client that is not very configurable). Vocabulary An excerpt of a dbpedia dataset The vocabulary of DBPedia is very large, but in this tutorial we will only need the IRIs below. foaf:name Propriété Nom d’une personne (entre autre) dbo:birthDate Propriété Date de naissance d’une personne dbo:birthPlace Propriété Lieu de naissance d’une personne dbo:deathDate Propriété Date de décès d’une personne dbo:deathPlace Propriété Lieu de décès d’une personne dbo:country Propriété Pays auquel un lieu appartient dbo:mayor Propriété Maire d’une ville dbr:Digne-les-Bains Instance La ville de Digne les bains dbr:France Instance La France -1- /!\ Warning: IRIs are case-sensitive. Exercises 1. Display the IRIs of all Dignois of origin (people born in Digne-les-Bains) Graph Pattern Answer: PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX skos: <http://www.w3.org/2004/02/skos/core#> PREFIX dc: <http://purl.org/dc/elements/1.1/> PREFIX dbo: <http://dbpedia.org/ontology/> PREFIX dbr: <http://dbpedia.org/resource/> PREFIX db: <http://dbpedia.org/> SELECT * WHERE { ?p dbo:birthPlace dbr:Digne-les-Bains .
    [Show full text]
  • Supporting SPARQL Update Queries in RDF-XML Integration *
    Supporting SPARQL Update Queries in RDF-XML Integration * Nikos Bikakis1 † Chrisa Tsinaraki2 Ioannis Stavrakantonakis3 4 Stavros Christodoulakis 1 NTU Athens & R.C. ATHENA, Greece 2 EU Joint Research Center, Italy 3 STI, University of Innsbruck, Austria 4 Technical University of Crete, Greece Abstract. The Web of Data encourages organizations and companies to publish their data according to the Linked Data practices and offer SPARQL endpoints. On the other hand, the dominant standard for information exchange is XML. The SPARQL2XQuery Framework focuses on the automatic translation of SPARQL queries in XQuery expressions in order to access XML data across the Web. In this paper, we outline our ongoing work on supporting update queries in the RDF–XML integration scenario. Keywords: SPARQL2XQuery, SPARQL to XQuery, XML Schema to OWL, SPARQL update, XQuery Update, SPARQL 1.1. 1 Introduction The SPARQL2XQuery Framework, that we have previously developed [6], aims to bridge the heterogeneity issues that arise in the consumption of XML-based sources within Semantic Web. In our working scenario, mappings between RDF/S–OWL and XML sources are automatically derived or manually specified. Using these mappings, the SPARQL queries are translated on the fly into XQuery expressions, which access the XML data. Therefore, the current version of SPARQL2XQuery provides read-only access to XML data. In this paper, we outline our ongoing work on extending the SPARQL2XQuery Framework towards supporting SPARQL update queries. Both SPARQL and XQuery have recently standardized their update operation seman- tics in the SPARQL 1.1 and XQuery Update Facility, respectively. We have studied the correspondences between the update operations of these query languages, and we de- scribe the extension of our mapping model and the SPARQL-to-XQuery translation algorithm towards supporting SPARQL update queries.
    [Show full text]
  • Querying Distributed RDF Data Sources with SPARQL
    Querying Distributed RDF Data Sources with SPARQL Bastian Quilitz and Ulf Leser Humboldt-Universit¨at zu Berlin {quilitz,leser}@informatik.hu-berlin.de Abstract. Integrated access to multiple distributed and autonomous RDF data sources is a key challenge for many semantic web applications. As a reaction to this challenge, SPARQL, the W3C Recommendation for an RDF query language, supports querying of multiple RDF graphs. However, the current standard does not provide transparent query fed- eration, which makes query formulation hard and lengthy. Furthermore, current implementations of SPARQL load all RDF graphs mentioned in a query to the local machine. This usually incurs a large overhead in network traffic, and sometimes is simply impossible for technical or le- gal reasons. To overcome these problems we present DARQ, an engine for federated SPARQL queries. DARQ provides transparent query ac- cess to multiple SPARQL services, i.e., it gives the user the impression to query one single RDF graph despite the real data being distributed on the web. A service description language enables the query engine to decompose a query into sub-queries, each of which can be answered by an individual service. DARQ also uses query rewriting and cost-based query optimization to speed-up query execution. Experiments show that these optimizations significantly improve query performance even when only a very limited amount of statistical information is available. DARQ is available under GPL License at http://darq.sf.net/. 1 Introduction Many semantic web applications require the integration of data from distributed, autonomous data sources. Until recently it was rather difficult to access and query data in such a setting because there was no standard query language or interface.
    [Show full text]
  • SPARQL Query Processing with Conventional Relational Database Systems
    View metadata, citation and similar papers at core.ac.uk brought to you by CORE provided by e-Prints Soton SPARQL query processing with conventional relational database systems Steve Harris IAM, University of Southampton, UK [email protected] Abstract. This paper describes an evolution of the 3store RDF storage system, extended to provide a SPARQL query interface and informed by lessons learned in the area of scalable RDF storage. 1 Introduction The previous versions of the 3store [1] RDF triplestore were optimised to pro- vide RDQL [2] (and to a lesser extent OKBC [3]) query services, and had no efficient internal representation of the language and datatype extensions from RDF 2004 [4]. This revision of the 3store software adds support for the SPARQL [5] query language, RDF datatype and language support. Some of the representation choices made in the implementation of the previous versions of 3store made efficient support for SPARQL queries difficult. Therefore, a new underlying rep- resentation for the RDF statements was required, as well as a new query en- gine capable of supporting the additional features of SPARQL over RDQL and OKBC. 2 Related Work The SPARQL query language is still at an early stage of standardisation, but there are already other implementations. 2.1 Federate Federate [6] is a relational database gateway, which maps RDF queries to existing database structures. Its goal is for compatibility with existing relational database systems, rather than as a native RDF storage and querying engine. However, it shares the approach of pushing as much processing down into the database engine as possible, though the algorithms employed are necessarily different.
    [Show full text]