Why Not to Use Binary Floating Point Datatypes In

Total Page:16

File Type:pdf, Size:1020Kb

Why Not to Use Binary Floating Point Datatypes In 1 Why Not to Use Binary Floating Point Datatypes in RDF Jan Martin Keil Heinz Nixdorf Chair for Distributed Information Systems, Institute for Computer Science, Friedrich Schiller University Jena, Ernst-Abbe-Platz 2, 07743 Jena, Germany Email: [email protected] Abstract—The XSD binary floating point datatypes are regu- decimals. Subsequently, error accumulation may significantly larly used for precise numeric values in RDF. However, the use of falsify the result of the processing of these values. Disasters, these datatypes for knowledge representation can systematically such as the Patriot Missile Failure, which resulted in 28 deaths, impair the quality of data and, compared to the XSD decimal datatype, increases the probability of data processing producing illustrate the potential impact of accumulated errors in real false results. We argue why in most cases the XSD decimal world applications [6]. The increasing relevance of knowledge datatype is better suited to represent numeric values in RDF. graphs for real world applications calls for general awareness of these issues in the Semantic Web community. Index Terms—Datatype, Knowledge Graph, Numerical Stabil- In this paper, we discuss advantages and disadvantages of ity, Ontology Engineering, RDF, XSD. the different numeric datatypes. We aim to raise awareness of the implications of datatype selection in RDF and to enable a more informed choice in the future. This work is structured I. INTRODUCTION as follows: In Section II, we give an overview of relevant The Resource Description Framework (RDF) is the funda- standards and related work, followed by a comparison of the mental building block of knowledge graphs and the Semantic properties of the binary floating point and decimal datatypes Web. In RDF, values are represented as literals. A literal in Section III. In Section IV, we discuss the implications of consists of a lexical form, a datatype, and possibly a language the datatype properties in different use cases. An approach for tag. The use of XML Schema (XSD) built-in datatypes [1] is automatic problem detection is sketched in Section V. Finally, recommended by the RDF standard [2, Sec. 5.1]. For numeric we summarize the implications of the datatype properties in values, this includes the primitive types float, double and Section VI. decimal as well as all variations of integer1 which are derived from decimal. II. BACKGROUND The datatype decimal allows to represent numbers with Each datatype in RDF consists of a lexical space, a value arbitrary precision, whereas the datatypes float and double space, and a lexical-to-value mapping. This is compatible with allow to represent binary floating point values of limited range datatypes in XSD [2]. and precision [1]. However, in practice, the binary floating The value space of a datatype is the set of values point datatypes are regularly used for precise numeric values, for that datatype [1, 2]. even though the datatype can not accurately represent these The lexical space of a datatype is the prescribed values. In a comparison study [3] of nine unit ontologies, five set of strings which the lexical mapping for that ontologies used binary floating point values for unit conversion arXiv:2011.08077v1 [cs.DB] 13 Nov 2020 datatype maps to values of that datatype. The mem- factors, two ontologies used decimal values for conversion bers of the lexical space are lexical representations factors, and two ontologies did not provide conversion data.2 (XSD) or lexical forms (RDF) of the values to which Even a popular ontology guideline [4] and a World Wide Web they are mapped [1, 2]. Consortium (W3C) working group note [5] use binary floating point datatypes for precise numeric values in examples. The lexical mapping (XSD) or lexical-to-value A finite decimal with sufficient precision can represent every mapping (RDF) for a datatype is a prescribed re- possible binary floating point value. In contrast, a finite binary lation which maps from the lexical space of the floating point can not exactly represent every possible decimal datatype into its value space [1, 2]. value. Therefore, the use of binary floating point datatypes for RDF reuses many of the XSD datatypes [2]. For non- precise numeric values can cause rounding errors in the values integer numbers, XSD provides the datatypes decimal, float actually represented, compared to original values provided as and double. The datatype decimal represents a subset of the real numbers [1]. 1integer, long, int, short, byte, nonNegativeInteger, positiveInteger, un- Value space of decimal: The set of numbers that can signedLong, unsignedInt, unsignedShort, unsignedByte, nonPositiveInteger, be obtained by dividing an integer by a non-negative and negativeInteger i 2using float/double: OM 1, OM 2, QU, QUDT, SWEET; using decimal: power of ten: 10n with i 2 Z; n 2 N0; precision is OBOE, WD not reflected [1]. 2 Lexical space of decimal: The set of all decimal ment, and constant. According to the note, the usually appro- numbers with or without a decimal point [1]. priate datatypes are (derived datatypes of) the integer datatype Lexical mapping of decimal: Set i according to the for counts, binary floating point datatypes for measurements, decimal digits of the lexical representation and the and the decimal datatype for constants [5]. leading sign, and set n according to the position of The digital representation or computation of numerical val- the period or 0, if the period is omitted. If the sign ues can cause numerical problems: An overflow error occurs, is omitted,“+” is assumed [1]. if a represented value exceeds the maximum positive or nega- The XSD datatype float is aligned with the IEEE 32-bit tive value in the value space of a datatype. An underflow error binary floating point datatype [7]3, the XSD datatype double occurs, if a represented value is smaller than the minimum is aligned to the IEEE 64-bit binary floating point datatype positive or negative value different from zero in the value [7]. Both represent subsets of the rational numbers. They only space of a datatype. A rounding error occurs, if a represented differ in their three defining constants [1]. value is not in the value space of a datatype and is represented Value space of float (double): The set of the special by a nearby value in the value space that is determined by a values positiveZero, negativeZero, positiveInfinity, rounding scheme. A cancellation is caused by the subtraction negativeInfinity, and notANumber and the numbers of nearly equal values and eliminates leading accurate digits. that can be obtained by multiplying an integer m This will expose rounding errors in the input values of the whose absolute value is less than 224 (double: 253) subtraction. Error accumulation is the insidious growth of with a power of two whose exponent e is an integer errors due to the use of a numerically instable sequence of between −149 (double: −1074) and 104 (double: operations. 971): m × 2e [1]. Lexical space of float (double): The set of all III. PROPERTIES OF BINARY FLOATING POINT AND decimal numbers with or without a decimal point, DECIMAL DATATYPES IN RDF numbers in exponential notation, and the literals Binary floating point and decimal datatypes in the context INF, +INF, -INF, and NaN [1]. of RDF have individual properties, which make them more or Lexical mapping of float (double): Set either less suitable for specific use cases: the according numeric value (including rounding, if Float and double permit the use of positive and negative necessary), or the according special value. An imple- infinite values. Decimal supports neither positive nor negative mentation might choose between different rounding infinite values. variants that satisfy the requirements of the IEEE Float and double permit the use of exponential notation. specification. Especially in case of numbers with many leading or trailing Some RDF serialization or query languages provide a zeros, this is more convenient and less error-prone to read or shorthand syntax for numeric literals without explicit datatype write for humans. Decimal does not permit the use of expo- specification. In Turtle, TriG and SPARQL, by default, num- nential notation. There is no actual reason for this limitation. bers without fractions are integers, numbers with fractions are For example, Wikibase4 also accepts exponential notation for decimals, and numbers in exponential notation are doubles [8, decimal.5 9, 10]. In JSON-LD, by default, numbers without fractions are The value spaces of float and double only provide partial integers and numbers with fractions are doubles, to align with coverage of the lexical space. Therefore, the lexical map- the common interpretation of numbers in JSON [11]. ping ( 1 in Figure 1) might require rounding to a possible In addition to the core XSD datatypes, a W3C working binary representation and the actual value might slightly differ group note introduces the precisionDecimal datatype from the lexical representation. For example, float has no [12]. It is aligned to the IEEE decimal floating-point datatypes exact binary representation of 0:1 and, if using the default [7] and represents a subset of real numbers. It retains precision roundTiesToEven rounding scheme [7], the lexical represen- and permits the special values positiveZero, negativeZero, tation 0:1 of float actually maps to a slightly higher binary positiveInfinity, negativeInfinity, and notANumber. Further, it representation of 0:10000000149011612. Depending on the supports exponential notation. The precision and exponent val- used RDF framework, it might be possible to preserve the ues of the precisionDecimal datatype are unbounded, but exact value of the lexical representation by implementing can be restricted in derived datatypes to comply with an actual a custom mapping to decimal ( 2 in Figure 1). However, IEEE decimal floating-point datatype. However, even though this causes additional development effort and introduces non the RDF standard permits the use of precisionDecimal, it standard conform behavior.
Recommended publications
  • V a Lida T in G R D F Da
    Series ISSN: 2160-4711 LABRA GAYO • ET AL GAYO LABRA Series Editors: Ying Ding, Indiana University Paul Groth, Elsevier Labs Validating RDF Data Jose Emilio Labra Gayo, University of Oviedo Eric Prud’hommeaux, W3C/MIT and Micelio Iovka Boneva, University of Lille Dimitris Kontokostas, University of Leipzig VALIDATING RDF DATA This book describes two technologies for RDF validation: Shape Expressions (ShEx) and Shapes Constraint Language (SHACL), the rationales for their designs, a comparison of the two, and some example applications. RDF and Linked Data have broad applicability across many fields, from aircraft manufacturing to zoology. Requirements for detecting bad data differ across communities, fields, and tasks, but nearly all involve some form of data validation. This book introduces data validation and describes its practical use in day-to-day data exchange. The Semantic Web offers a bold, new take on how to organize, distribute, index, and share data. Using Web addresses (URIs) as identifiers for data elements enables the construction of distributed databases on a global scale. Like the Web, the Semantic Web is heralded as an information revolution, and also like the Web, it is encumbered by data quality issues. The quality of Semantic Web data is compromised by the lack of resources for data curation, for maintenance, and for developing globally applicable data models. At the enterprise scale, these problems have conventional solutions. Master data management provides an enterprise-wide vocabulary, while constraint languages capture and enforce data structures. Filling a need long recognized by Semantic Web users, shapes languages provide models and vocabularies for expressing such structural constraints.
    [Show full text]
  • Semantics Developer's Guide
    MarkLogic Server Semantic Graph Developer’s Guide 2 MarkLogic 10 May, 2019 Last Revised: 10.0-8, October, 2021 Copyright © 2021 MarkLogic Corporation. All rights reserved. MarkLogic Server MarkLogic 10—May, 2019 Semantic Graph Developer’s Guide—Page 2 MarkLogic Server Table of Contents Table of Contents Semantic Graph Developer’s Guide 1.0 Introduction to Semantic Graphs in MarkLogic ..........................................11 1.1 Terminology ..........................................................................................................12 1.2 Linked Open Data .................................................................................................13 1.3 RDF Implementation in MarkLogic .....................................................................14 1.3.1 Using RDF in MarkLogic .........................................................................15 1.3.1.1 Storing RDF Triples in MarkLogic ...........................................17 1.3.1.2 Querying Triples .......................................................................18 1.3.2 RDF Data Model .......................................................................................20 1.3.3 Blank Node Identifiers ..............................................................................21 1.3.4 RDF Datatypes ..........................................................................................21 1.3.5 IRIs and Prefixes .......................................................................................22 1.3.5.1 IRIs ............................................................................................22
    [Show full text]
  • 15 Years of Semantic Web: an Incomplete Survey
    Ku¨nstl Intell (2016) 30:117–130 DOI 10.1007/s13218-016-0424-1 TECHNICAL CONTRIBUTION 15 Years of Semantic Web: An Incomplete Survey 1 2 Birte Glimm • Heiner Stuckenschmidt Received: 7 November 2015 / Accepted: 5 January 2016 / Published online: 23 January 2016 Ó Springer-Verlag Berlin Heidelberg 2016 Abstract It has been 15 years since the first publications today’s Web: Uniform Resource Identifiers (URIs) for proposed the use of ontologies as a basis for defining assigning unique identifiers to resources, the HyperText information semantics on the Web starting what today is Markup Language (HTML) for specifying the formatting known as the Semantic Web Research Community. This of Web pages, and the Hypertext Transfer Protocol (HTTP) work undoubtedly had a significant influence on AI as a that allows for the retrieval of linked resources from across field and in particular the knowledge representation and the Web. Typically, the markup of standard Web pages Reasoning Community that quickly identified new chal- describes only the formatting and, hence, Web pages and lenges and opportunities in using Description Logics in a the navigation between them using hyperlinks is targeted practical setting. In this survey article, we will try to give towards human users (cf. Fig. 1). an overview of the developments the field has gone through In 2001, Tim Berners-Lee, James Hendler, and Ora in these 15 years. We will look at three different aspects: Lassila describe their vision for a Semantic Web [5]: the evolution of Semantic Web Language Standards, the The Semantic Web is not a separate Web but an evolution of central topics in the Semantic Web Commu- extension of the current one, in which information is nity and the evolution of the research methodology.
    [Show full text]
  • XML Database Trigger
    Comput Sci Res Dev (2014) 29:1–19 DOI 10.1007/s00450-010-0132-2 REGULAR PAPER XTrigger: XML database trigger Anders H. Landberg · J. Wenny Rahayu · Eric Pardede Received: 2 September 2009 / Accepted: 5 August 2010 / Published online: 26 August 2010 © Springer-Verlag 2010 Abstract An ever increasing amount of data is being ex- 1 Introduction changed and stored in the XML data format brings with it a number of advanced requirements to XML database func- The concept of the database trigger was first introduced in tionality, such as trigger mechanism. Triggers are commonly 1976 [1]. Prior to this, the need for a mechanism to auto- used to uphold data integrity constraints and are yet to be matically react to constraint violations had been identified rigorously defined for XML. To make trigger functionality as necessary [2–4]. Some of the most common areas where for XML databases as practical and applicable as it is in triggers can be used are: monitoring constraints on the data the relational context, the hierarchical nature of the XML [5–7], view maintenance [7], temporal changes [18], ver- data model must be considered. However, current research sioning [19] and logging manipulation of data [5]. However, several authors show how entire business logic can be incor- on XML triggers shows clear limitations with respect to porated into triggers [8]. multi-document applicability and ancestor-descendant rela- The W3C standard does not yet include an XML trigger tionships. support method [9]. Therefore, this paper investigates and We introduce path-level granularity in combination with discusses what is lacking in previous approaches, the rea- the novel concept of trigger scope, which plays a critical sons for these absences, and it considers solutions where the role in the validation of complex constraints.
    [Show full text]
  • JSON-LD 1.1 – a JSON-Based Serialization for Linked Data Gregg Kellogg, Pierre-Antoine Champin, Dave Longley
    JSON-LD 1.1 – A JSON-based Serialization for Linked Data Gregg Kellogg, Pierre-Antoine Champin, Dave Longley To cite this version: Gregg Kellogg, Pierre-Antoine Champin, Dave Longley. JSON-LD 1.1 – A JSON-based Serialization for Linked Data. [Technical Report] W3C. 2019. hal-02141614v2 HAL Id: hal-02141614 https://hal.archives-ouvertes.fr/hal-02141614v2 Submitted on 28 Jan 2020 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. https://www.w3.org/TR/json-ld11/ JSON-LD 1.1 A JSON-based Serialization for Linked Data W3C Candidate Recommendation 12 December 2019 This version: https://www.w3.org/TR/2019/CR-json-ld11-20191212/ Latest published version: https://www.w3.org/TR/json-ld11/ Latest editor's draft: https://w3c.github.io/json-ld-syntax/ Test suite: https://w3c.github.io/json-ld-api/tests/ Implementation report: https://w3c.github.io/json-ld-api/reports/ Previous version: https://www.w3.org/TR/2019/WD-json-ld11-20191112/ Latest Recommendation: https://www.w3.org/TR/2014/REC-json-ld-20140116/ Editors: Gregg Kellogg (v1.0 and v1.1) Pierre-Antoine Champin
    [Show full text]
  • Rdflib Documentation
    rdflib Documentation Release 5.0.0-dev RDFLib Team Nov 01, 2018 Contents 1 Getting started 3 2 In depth 19 3 Reference 33 4 For developers 157 5 Indices and tables 171 Python Module Index 173 i ii rdflib Documentation, Release 5.0.0-dev RDFLib is a pure Python package work working with RDF. RDFLib contains most things you need to work with RDF, including: • parsers and serializers for RDF/XML, N3, NTriples, N-Quads, Turtle, TriX, RDFa and Microdata. • a Graph interface which can be backed by any one of a number of Store implementations. • store implementations for in memory storage and persistent storage on top of the Berkeley DB. • a SPARQL 1.1 implementation - supporting SPARQL 1.1 Queries and Update statements. Contents 1 rdflib Documentation, Release 5.0.0-dev 2 Contents CHAPTER 1 Getting started If you never used RDFLib, click through these 1.1 Getting started with RDFLib 1.1.1 Installation RDFLib is open source and is maintained in a GitHub repository. RDFLib releases, current and previous are listed on PyPi The best way to install RDFLib is to use pip (sudo as required): $ pip install rdflib Support is available through the rdflib-dev group: http://groups.google.com/group/rdflib-dev and on the IRC channel #rdflib on the freenode.net server The primary interface that RDFLib exposes for working with RDF is a Graph. The package uses various Python idioms that offer an appropriate way to introduce RDF to a Python programmer who hasn’t worked with RDF before. RDFLib graphs are not sorted containers; they have ordinary set operations (e.g.
    [Show full text]
  • RDF and RDFS File
    RDF and RDF Schema ME-E4300 Semantic Web, 16.1.2019 Eero Hyvönen Aalto University, Semantic Computing Research Group (SeCo) http://seco.cs.aalto.fi University of Helsinki, HELDIG http://heldig.fi [email protected] Outline • RDF data model • RDF syntax • RDF Schema (RDFS) • RDF(S) semantics Department of Computer Science 2 RDF data model Department of Computer Science Key idea: triple ”subject” ”predicate” ”object” Department of Computer Science 4 RDF data model and relational person name occupation birth place … databases H1 Akseli Gallen-Kallela artist Lemu H2 Gustaf Mannerheim marshal Askainen • Information is often available … as tables in relational subject predicate object H1 type person databases or CSV files H1 name Akseli Gallen-Kallela H1 occupation artist H1 birth place Lemu H2 type person H2 name Gustaf Mannerheim • RDF is a set of triples H2 occupation marshal – n-ary information can be H2 birth place Askainen represented as triples ”Akseli Gallen-Kallela” name person occupation artist H1 • RDF is a data model: directed birth place type Lemu named graph type ”Gustaf Mannerheim” name occupation H2 marshal birth place Askainen 5 RDF data model: fundamental concepts • Literals • Resources (and their identifiers) • Statements (triples) • Graphs • Datasets and quads Department of Computer Science 6 Literals data values Department of Computer Science Literals Literal is data encoded as a string • ”Suomi”, ”Last waltz in Paris” Literal value can be accompanied with a XML language tag: • ”Suomi”@fi, ”Last waltz in Paris”@en Literal
    [Show full text]
  • Graphs Task Force Report Richard Cyganiak
    Graphs Task Force Report Richard Cyganiak 1st RDF Working Group Face To Face Meeting, 13 April 2011, Amsterdam Wednesday 13 April 2011 Task before the WG http://www.w3.org/2011/01/rdf-wg-charter ✤ (Required) “Standardize a model and semantics for multiple graphs and graphs stores” ✤ (Required) “Standardize the Turtle RDF Syntax. Either that syntax or a related syntax should also support multiple graphs and graph stores.” ✤ (Required) “Define and standardize a JSON Syntax for RDF … The goal is to [be] as complete as possible (including multiple graphs and graph stores)” ✤ (Time permitting) “Standardize additions to RDF/XML … Candidates Wednesday 13 April 2011 Inputs ✤ SPARQL’s RDF Dataset (and SPARQL Update’s Graph Store) ✤ Carroll et al.: Named Graphs ✤ Notation3: quoted graphs ✤ TriG ✤ N-Quads ✤ RDF/XML with rdf:graph (INRIA proposal) ✤ Reification ✤ (Typed graph literals) Wednesday 13 April 2011 Use Cases http://www.w3.org/2011/rdf-wg/wiki/TF-Graphs-UC ✤ 5 Storage Use Cases ✤ 2 Query Use Cases ✤ 8 Provenance Use Cases ✤ 4 Use Cases for Providing a standard foundation for W3C specs ✤ 2 Advanced Annotations Use Cases Wednesday 13 April 2011 Proposals ✤ Lift SPARQL’s RDF Dataset into RDF Concepts and Abstract Syntax (a) Treat it only as an abstract syntax (b) Alex’s Semantics proposal (c) Antoine’s Semantics proposal ✤ Others??? ✤ Notation3-style quoted graphs ✤ Only defining <IRI,graph> pairs might be sufficient ✤ Reification or graph literals might have a role to play Wednesday 13 April 2011 Issues Wednesday 13 April 2011 ISSUE-5 (Graph Literals)
    [Show full text]
  • Normative Requirements As Linked Data Fabien Gandon, Guido Governatori, Serena Villata
    Normative Requirements as Linked Data Fabien Gandon, Guido Governatori, Serena Villata To cite this version: Fabien Gandon, Guido Governatori, Serena Villata. Normative Requirements as Linked Data. JURIX 2017 - The 30th international conference on Legal Knowledge and Information Systems , Dec 2017, Luxembourg, Luxembourg. pp.1-10. hal-01643769 HAL Id: hal-01643769 https://hal.archives-ouvertes.fr/hal-01643769 Submitted on 22 Nov 2017 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. Normative Requirements as Linked Data Fabien GANDON a;1, Guido GOVERNATORI b and Serena VILLATA a a Université Côte d’Azur, Inria, CNRS, I3S, France b Data61, CSIRO, Australia Abstract. In this paper, we propose a proof of concept for the ontological repre- sentation of normative requirements as Linked Data on the Web. Starting from the LegalRuleML ontology, we present an extension of this ontology to model normative requirements and rules. Furthermore, we define an operational formalization of the deontic reasoning over these concepts on top of the Semantic Web languages. Keywords. Linked data, Semantic Web, Deontic rules, Ontology 1. Introduction The Linked Data principles [3] provide a standard approach to weave a Web of data, linking datasets across the world and virtually in any domain.
    [Show full text]
  • XML to RDF Transformation
    Diploma Thesis August 3, 2006 XML to RDF Transformation Markus Fehlmann of Aadorf TG, Switzerland (00-912-857) supervised by Prof. Dr. Harald Gall Dr. Gerald Reif Department of Informatics software evolution & architecture lab Diploma Thesis XML to RDF Transformation Markus Fehlmann Department of Informatics software evolution & architecture lab Diploma Thesis Author: Markus Fehlmann, [email protected] Project period: February 3, 2006 - August 3, 2006 Software Evolution & Architecture Lab Department of Informatics, University of Zurich Acknowledgements I am grateful to Gerald Reif whose PhD thesis was an excellent foundation for this work. Many of the now implemented features and ideas originated from fruitful discussions during the last six months. Gerald proved that the sentence used to advertise the thesis ”be best supervised by your advisers” was more than just empty words. I also express my gratitude to professor Harald Gall for giving me the opportunity to write my diploma thesis in the field of the Semantic Web, that I believe will strongly influence the way people access and process information, the main resource of today’s information society. I thank my parents for making my education possible and for all their encouragement through the years. Needless to say I could not have done this without them. My thanks also go to my fellow students and friends who provided me with useful inputs and critical suggestions. Abstract XML continues to be the primary format for data exchange in distributed systems. However, since several serializations of domain specific knowledge are possible, XML documents have no imma- nent semantic. The Semantic Web provides a common framework that allows data to be shared and reused across application, enterprise, and community boundaries.
    [Show full text]
  • Querying RDF with Xcerpt
    INSTITUT FUR¨ INFORMATIK Lehr- und Forschungseinheit fur¨ Programmier- und Modellierungssprachen Oettingenstraße 67 D–80538 Munchen¨ Towards Data-Integration on the Semantic Web: Querying RDF with Xcerpt Oliver M. Bolzer Diplomarbeit Beginn der Arbeit: 01.09.2004 Abgabe der Arbeit: ABGABEDATUM Betreuer: Prof. Dr.Franc¸ois Bry Tim Furche Sebastian Schaffert Erkl¨arung Hiermit versichere ich, dass ich diese Diplomarbeit selbstandig¨ verfasst habe. Ich habe dazu keine anderen als die angegebenen Quellen und Hilfsmittel verwendet. Munchen,¨ den ABGABEDATUM Oliver M. Bolzer Zusammenfassung Obwohl RDF als XML gespeichert wird, sind auf Grund der syntaktischen Variabilitat¨ und der Notwendigkeit des automatischen Schliessens XML-Anfragesprachen unge- eignet um RDF-Daten zu verarbeiten. Zur Zeit werden zahlreiche Anfragesprachen fur¨ RDF vorgeschlagen. Diese sind jedoch auf RDF spezialisiert und nicht in der Lage, beliebige XML Daten anzufragen. Um einheitlichen Zugriff auf das traditionelle Web und das neue Wissen des Semantischen Webs zu ermooglichen,¨ sind flexiblere Web- Anfragesprachen notwendig. Diese Arbeit untersucht das Anfragen von RDF mit Xcerpt, einer deklarativen, regel- basierenden Anfrage- und Transformationssprache fur¨ XML und andere semistruktu- rierte Daten. Zwei Darstellungen von RDF Daten als Xcerpt Daten Terme werden vor- geschlagen, realisiert als Sichten uber¨ konkrete Serialisierungen in verschiedenen XML Formaten. Weiterhin wird eine Implementierung des automatische Schliessen von RDF Schema in Form von Xcerpt-Regeln erforscht. Schliesslich werden Anwendungsbeispie- le betrachtet, um die Vorteile einer Anfragespraache hervorzuheben, die in der Lage ist sowohl das traditionelle Web als auch das Semantische Web anzufragen. Abstract Although RDF is serialized using XML, the many possible syntactic forms and the need for inferencing make it difficult to query RDF using existing XML query languages.
    [Show full text]
  • Semclip - Overcoming the Semantic Gap Between Desktop Applications
    SemClip - Overcoming the Semantic Gap Between Desktop Applications Gerald Reif1, Gian Marco Laube1, Knud M¨oller2, and Harald Gall1 1 University of Zurich, Department of Informatics, Zurich, Switzerland reif,gall @ifi.uzh.ch { } 2 Digital Enterprise Research Institute, National University of Ireland, Galway [email protected] Abstract. When copying and pasting data between applications using the operating system clipboard, the semantics of the transfered informa- tion is usually lost. Using Semantic Web technologies these semantics can be explicitly defined in a machine process-able way and therefore be pre- served during the data transfer. In this paper we introduce SemClip, our implementation of a Semantic Clipboard that enables the exchange of semantically enriched data between desktop applications and show how such a clipboard can be used to copy and paste semantic annotations from Web pages to desktop applications. 1 Introduction The concept of a clipboard that has been introduced to modern operating sys- tems enables the data transfer using the notions of “copy” and “paste”. In our everyday work the clipboard is frequently used to exchange data between desktop applications. Current clipboards support the exchange of plain text, formatted text (e.g., HTML, rich text format RTF), or binary data (e.g., images). The se- mantic context of the exchanged data, however, is lost during the data transfer. Using such a clipboard therefore leaves a semantic gap between the source and the target application. Some clipboards also support the transfer of semantically richer data, for example between the applications within an office suite. This data transfer, however, relies on proprietary data formats.
    [Show full text]