1 MASWS XML, RDF and RDFS Contents 2 RDF In

Total Page:16

File Type:pdf, Size:1020Kb

1 MASWS XML, RDF and RDFS Contents 2 RDF In 1 MASWS XML, RDF and RDFS Contents 1 Outline 1 2 RDF in XML 1 2.1 Tree-based View . 1 3 RDFS 4 4 Summary 6 2 RDF in XML 2.1 Tree-based View Document Trees Again, 1 • As before, we can represent XML documents as trees. • An example from last lecture: Example XML Document <film> <title lang="en">Seven Samurai</title> <title lang="ja">Shichinin no samurai</title> <director>Akira Kurosawa</director> <date>1954</date> </film> Document Trees Again, 1 • Elements are represented as nodes. • So are Attributes and Text items! Element: title Element: film Element: title Element: date Attr: lang Text: "en" Element: title Text: "Seven Samurai" Attr: lang Text: "ja" Element: film Element: title Text: "Shichinin no samurai" Element: date Text: "1954" RDF Triples as XML Trees, 1 • RDF Triples are encoded as rdf:Description elements. RDF Triple with literal Object edstaff:104599 foaf:name ‘Jacques Fleuriot’ RDF Triples as XML Trees, 2 RDF Triples with resource Object infcourses:masws dc:creator edstaff:104599 RDF Triples as XML Trees, 3 • RDF Triples are serialized as rdf:Description elements. • The Subject is the value of the rdf:about attribute on rdf:Description. • The Predicate becomes a child element of rdf:Description. • Objects: – Literal Objects are text content of the ‘Predicate’ element. – Resource Objects are values of the rdf:resource attribute of the ‘Predicate’ element. – URIs have to be written out in full (no Qnames) when they are attribute values. 2 RDF Triples as XML Trees, 4 RDF Triple with literal Object edstaff:104599 foaf:name ‘Jacques Fleuriot’ Linear version <rdf:Description rdf:about="http://...#104599"> <foaf:name>Jacques Fleuriot</foaf:name> </rdf:Description> RDF Triples as XML Trees, 5 RDF Triples with resource Object infcourses:masws dc:creator edstaff:104599 Linear version <rdf:Description rdf:about="http://.../masws"> <dc:creator rdf:resource="http://...#104599"/> </rdf:Description> Abbreviating Multiple Properties RDF Triples with shared Subject edstaff:104599 foaf:name ’Jacques Fleuriot’ edstaff:104599 foaf:homepage http://.../~jdf/ Linear version <rdf:Description rdf:about="http://...#104599"> <foaf:name>Jacques Fleuriot</foaf:name> </rdf:Description> <rdf:Description rdf:about="http://...#104599"> <foaf:homepage rdf:resource="http://.../~jdf/> </rdf:Description> Linear version 3 <rdf:Description rdf:about="http://...#104599"> <foaf:name>Jacques Fleuriot</foaf:name> <foaf:homepage rdf:resource="http://.../~jdf/> </rdf:Description> Blank Nodes mailto:[email protected] foaf:mailbox http://.../~kim dc:creator foaf:name 'Kim' XML version of blank node <rdf:Description rdf:about="http://.../~kim"> <dc:creator rdf:nodeID="abc"/> </rdf:Description> <rdf:Description rdf:nodeID="abc"> <foaf:mailbox rdf:resource="mailto:[email protected]> <foaf:name>Kim</foaf:name> </rdf:Description> 3 RDFS RDF Schema • RDFS is a vocabulary description language for RDF. – Acts as a semantic extension of RDF. • RDFS defines classes and properties that may be used to describe classes, properties and other re- sources. • RDFS is similar to the type systems of object-oriented programming languages (e.g. Java). – But it describes properties in terms of the classes of resource to which they apply (through the use of domain and range mechanisms). Ontologies Again • Recall isa and io links from the ontology lecture. 4 Classes and Instances Declaring Classes terms:Giraffe rdf:type rdfs:Class terms:Herbivore rdf:type rdfs:Class Giraffe and Herbivore are classes. Instances myzoo:gerome rdf:type terms:Giraffe jerome is a member of (io) Giraffe. Subclasses terms:Giraffe rdfs:subClassOf terms:Herbivore Giraffe is a subclass of (isa) Herbivore. Properties Subclasses terms:eats rdf:type rdf:Property eats is a property. Range terms:eats rdfs:range terms:Plant The values of eats are instances of Plant. Domain terms:eats rdfs:domain terms:Animal The subjects of eats are instances of Animal. RDF and RDFS Properties 5 4 Summary Summary • RDF Schema (RDFS) provides mechanisms for describing (simple) ontologies. • RDFS build on top of RDF, using rdf:type. • Provides – Class, subClassOf – Property, subPropertyOf – domain, range • Classes are primitives, not defined in terms of necessary and sufficient properties. Reading • Walton, Section 2.2; • RDF Vocabulary Description Language 1.0: RDF Schema (http://www.w3.org/TR/rdf-schema). 6.
Recommended publications
  • 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]
  • Microformats the Next (Small) Thing on the Semantic Web?
    Standards Editor: Jim Whitehead • [email protected] Microformats The Next (Small) Thing on the Semantic Web? Rohit Khare • CommerceNet “Designed for humans first and machines second, microformats are a set of simple, open data formats built upon existing and widely adopted standards.” — Microformats.org hen we speak of the “evolution of the is precisely encoding the great variety of person- Web,” it might actually be more appropri- al, professional, and genealogical relationships W ate to speak of “intelligent design” — we between people and organizations. By contrast, can actually point to a living, breathing, and an accidental challenge is that any blogger with actively involved Creator of the Web. We can even some knowledge of HTML can add microformat consult Tim Berners-Lee’s stated goals for the markup to a text-input form, but uploading an “promised land,” dubbed the Semantic Web. Few external file dedicated to machine-readable use presume we could reach those objectives by ran- remains forbiddingly complex with most blog- domly hacking existing Web standards and hop- ging tools. ing that “natural selection” by authors, software So, although any intelligent designer ought to developers, and readers would ensure powerful be able to rely on the long-established facility of enough abstractions for it. file transfer to publish the “right” model of a social Indeed, the elegant and painstakingly inter- network, the path of least resistance might favor locked edifice of technologies, including RDF, adding one of a handful of fixed tags to an exist- XML, and query languages is now growing pow- ing indirect form — the “blogroll” of hyperlinks to erful enough to attack massive information chal- other people’s sites.
    [Show full text]
  • From FOAF to English: Linguistic Contribution to Web Semantics
    From FOAF to English: Linguistic Contribution to Web Semantics Max Silberztein Université de Franche-Comté [email protected] Abstract which sentence to produce. This article presents the linguistic component of such a system. This paper presents a linguistic module capable of generating a set of English sentences that 2 The linguistic framework correspond to a Resource Description Framework (RDF) statement; I discuss how a Based on the principles of linguistic approaches to generator can control the linguistic module, as generation laid out by Danlos (1987), I have used well as the various limitations of a pure the NooJ1 platform to construct a set of linguistic linguistic framework. resources that parses a sequence of RDF statements and produces a corresponding set of English 1 Introduction sentences. NooJ allows linguists to construct structured sets of linguistic resources (“modules”) Automatic Natural Language Generation Software in the form of dictionaries and grammars2 to aims to express information stored in a knowledge formalize a large gamut of linguistic phenomena: database as a Natural Language text. The orthography and spelling, inflectional, derivational information at the source typically consists of a and agglutinative morphology, local and structural series of simple atomic statements, such as “John syntax, transformational syntax, lexical and owns a house”, “Mary lives in Manchester”, “Peter predicative semantics. All linguistic analyses are is Ann’s cousin”. These statements are usually performed sequentially by adding and/or removing stored in a knowledge database or ontology in a linguistic annotations to/from a Text Annotation formal notation such as Prolog (e.g. Structure (TAS); at each level of the analysis, each “Own(John,House)”) or XML.
    [Show full text]
  • Semantic Interaction with Music Content Using FOAF
    Semantic Interaction with Music Content using FOAF Oscar` Celma1, Miquel Ram´ırez1, and Perfecto Herrera1 Music Technology Group, Institut Universitari de l’Audiovisual Universitat Pompeu Fabra Ocata 1, 08003 Barcelona, Spain. {ocelma, mramirez, pherrera}@iua.upf.es http://www.iua.upf.es/mtg Abstract. SIMAC (Semantic Interaction with Music Audio Contents) is an European Commission project (IST-2.3.1.7, Semantic-based knowl- edge systems) which aims to develop a set of prototypes to describe, semi-automatically, music audio content. SIMAC is about music meta- data, about what you can say of a piece of music, on what is hidden in a music file, in a collection of music files, and in the collective knowledge of a community of music lovers. This document proposes to enhance/extend the FOAF definition to model user musical tastes. One of the goals of the project is to explore music content discovery, based on both user profiling and content-based descriptions. 1 Introduction The main goal of SIMAC1 is doing research on semantic descriptors of music contents, in order to use them, by means of a set of prototypes, for providing song collection exploration, retrieval and recommendation services. These services are meant for “home” users, music content producers and distributors and academic users. One special feature is that these descriptions are composed by semantic descriptors. Music will be tagged using a language close to the user’s own way of describing its contents —moving the focus from low-level to higher-level (i.e. semantic) descriptions. SIMAC is about music metadata. We assume that metadata is all what one can say about a single music piece or a collection of music pieces.
    [Show full text]
  • Viewing FOAF – Development of a Metadata Explorer 75
    ViewingViewing FOAF FOAF – Development – Development of a Metadata of a Metadata Explorer Explorer Josef Petrák Josef Petr´ak Faculty of Informatics and Statistics, University of Economics, Prague Winston Churchill Sq. 4, 130 67, Praha 3, Czech Republic Faculty of Informatics and Statistics, University of Economics, Prague [email protected] Winston Churchill Sq. 4, 130 67, Praha 3, Czech Republic [email protected] Abstract. Social networks are widely accepted application of Semantic Web technologies and are also interesting for general public. Nowadays there is a lack of quality user-friendly browser which could express meaning of the metadata stored in the most of FOAF profiles and present this knowledge in human-understandable form. The aim of the article is to inform about development of the AFE (Advanced FOAF Explorer) which is intended to perform these services and supersede one similar project. Keywords: social networks, Semantic Web, RDF, FOAF, PHP5 1 Introduction Friend Of A Friend vocabulary (FOAF) [1], an ontology used for description of personal profiles and relations among people, is well-known and popular in the Semantic Web [2] community. Thank to the user-friendly tools such as FOAF-a- Matic [5] people who are not familiar with RDF [14] can create their own profiles and publish them on the Internet. This is a good because may start spreading of the Semantic Web technologies to the public. But if these users create such profiles, they also require having a chance to view their profiles or to browse the profiles of other people. Nowadays there are several “viewers” but their features are limited.
    [Show full text]
  • Mapping RDF Graphs to Property Graphs
    Mapping RDF Graphs to Property Graphs Shota Matsumoto1, Ryota Yamanaka2, and Hirokazu Chiba3 1 Lifematics Inc., Tokyo 101-0041, Japan [email protected] 2 Oracle Corporation, Bangkok 10500, Thailand [email protected] 3 Database Center for Life Science, Chiba 277-0871, Japan [email protected] Abstract. Increasing amounts of scientific and social data are published in the Resource Description Framework (RDF). Although the RDF data can be queried using the SPARQL language, even the SPARQL-based operation has a limitation in implementing traversal or analytical algo- rithms. Recently, a variety of graph database implementations dedicated to analyses on the property graph model have emerged. However, the RDF model and the property graph model are not interoperable. Here, we developed a framework based on the Graph to Graph Mapping Lan- guage (G2GML) for mapping RDF graphs to property graphs to make the most of accumulated RDF data. Using this framework, graph data described in the RDF model can be converted to the property graph model and can be loaded to several graph database engines for further analysis. Future works include implementing and utilizing graph algo- rithms to make the most of the accumulated data in various analytical engines. Keywords: RDF · Property Graph · Graph Database 1 Introduction Increasing amounts of scientific and social data are described as graphs. As a format of graph data, the Resource Description Framework (RDF) is widely used. Although RDF data can be queried using the SPARQL language in a flexible way, SPARQL is not dedicated to traversal of graphs and has a limitation in arXiv:1812.01801v1 [cs.DB] 5 Dec 2018 implementing graph analysis algorithms.
    [Show full text]
  • How the Semantic Web Is Being Used: an Analysis of FOAF
    1 How the Semantic Web is Being Used: An Analysis of FOAF Documents Li Ding¤, Lina Zhouy, Tim Finin¤, Anupam Joshi¤ ¤ Department of Computer Science and Electrical Engineering y Department of Information Systems University of Maryland, Baltimore County Baltimore MD USA fdingli1,zhoul,finin,[email protected] Abstract— Semantic Web researchers have initially focused on engineering (more than 1,000 RDF documents has defined the representation, development and use of ontologies but paid terms containing ‘person’ 2). The other well populated non- less attention to the social and structural relationships involved. meta ontologies in Table I include: DC (Dublin Core Element The past year has seen a dramatic increase in the amount of published RDF documents using the Friend of a Friend (FOAF) Set) [3], which defines document metadata properties without vocabulary, providing a valuable resource for investigating how domain/range qualification, and RSS (RDF Site Summary), early Semantic Web adopters use this technology as well as which is “a lightweight multipurpose extensible metadata build social networks. We describe an approach to identify, description and syndication format” for annotating websites discover, and analyze FOAF documents. Over 1.5 million of [4] 3. FOAF documents are collected to show the variety and scalability of the web of FOAF documents. We analyzed the empirical usage TABLE I of namespace and properties in the FOAF community, which helps the FOAF project in standardizing vocabularies. We also EIGHT BEST POPULATED ONTOLOGIES (GENERATED IN JUNE,2004) analyzed the social networks induced by those FOAF documents Onto. Namespace URI # of Docs. and revealed interesting patterns which can become powerful Name Populated resource for outsourcing and justification of scientific knowledge.
    [Show full text]
  • Introduction to the PREMIS OWL Ontology: Draft Ontology for Version
    Introduction to the PREMIS OWL ontology Draft ontology for version 3.0 of the PREMIS Data Dictionary Webinar presentation, February 22, 2018 Outline of Webinar ● History of PREMIS OWL ontology ● Use cases for preservation metadata as Linked Data ● Principles followed ● An overview of the data model: top-level entities and relationships ● Reuse of other ontologies ● Integration with preservation controlled vocabularies ● Examples ● Community review 2 PREMIS ontology work ● PREMIS OWL Ontology ○ Initial draft done by Sam Coppens as PhD thesis in Belgium ○ Working group of PREMIS-EC reviewed and revised ○ Faithful to version 2.2 of Data Dictionary semantic units ○ Issued in June 2013 ● Current revision ○ Based on PREMIS Data Dictionary Version 3.0 with its data model changes ○ Working group of PREMIS-EC formed ○ Substantial remodeling of ontology taking into account current LD best practices ■ Initial development of goals and principles by Rob Sanderson/Esmé Cowles ○ Analysis of other relevant ontologies, e.g. PROV-O, ODRL, PCDM, DC ○ Draft released Dec. 2017; comment period until late March 2018 3 Use cases: PREMIS metadata as Linked Data ● Facilitate interoperability between repositories and registries publishing or exchanging metadata about digital objects ● Exchange digital preservation events from a preservation repository with other systems ● Use in Linked Data/RDF-based repositories (e.g. SPAR at BnF, Fedora 4) ● Enhance other ontologies and application profiles with rich preservation metadata 4 Principles ● Make the ontology as simple as possible ● Reuse existing elements from other ontologies where semantics agree ● Make relationships (equivalencies, hierarchical) with elements from other ontologies with appropriate RDF constructs ○ skos:closeMatch, skos:exactMatch ○ RDF/OWL subproperty/subclass relationships ● Use Linked Data aware controlled vocabularies for enumerated lists, e.g.
    [Show full text]
  • A Machine Learning Approach to Linking FOAF Instances
    A Machine Learning Approach to Linking FOAF Instances Jennifer Sleeman and Tim Finin University of Maryland, Baltimore County Baltimore MD 21250 {jsleem1,finin}@umbc.edu Abstract using human language and representation systems that are not designed to be distributed and open. The FOAF ontology allows one to create a foaf:Agent instance that indeed rep- The friend of a friend (FOAF) vocabulary is widely used on resents a single, unique individual and to describe its prop- the Web to describe individual people and their properties. Since FOAF does not require a unique ID for a person, it erties and relations. What it does not include is a property is not clear when two FOAF agents should be linked as co- that represents a globally unique identifier (GUID) that can referent, i.e., denote the same person in the world. One ap- be used to recognize when two foaf:Agent individuals are proach is to use the presence of inverse functional proper- co-referent, i.e., refer to the same individual whether real or ties (e.g., foaf:mbox) as evidence that two individuals are the fictional. Though recently it has become popular to use the same. Another applies heuristics based on the string similar- FOAF instance URI as the GUID, this does not guarantee ity of values of FOAF properties such as name and school that a person cannot be represented by more than one URI. as evidence for or against co-reference. Performance is lim- ited, however, by many factors: non-semantic string match- What we are left with is a problem that is common to other ing, noise, changes in the world, and the lack of more so- phisticated graph analytics.
    [Show full text]