CWM Closed World Machine. CWM Overview CWM is a popular Semantic Web program that can do the following tasks – Parse and pretty-print several RDF formats:

Slides:



Advertisements
Similar presentations
SPARQL Dimitar Kazakov, with references to material by Noureddin Sadawi ARIN, 2014.
Advertisements

CH-4 Ontologies, Querying and Data Integration. Introduction to RDF(S) RDF stands for Resource Description Framework. RDF is a standard for describing.
27 January Semantically Coordinated E-Market Semantic Web Term Project Prepared by Melike Şah 27 January 2005.
RDFa: Embedding RDF Knowledge in HTML Some content from a presentation by Ivan Herman of the W3c, Introduction to RDFa, given at the 2011 Semantic Technologies.
Using JavaScript in Linked Data Applications Oshani Seneviratne Oct 12, 2010.
Jena a introduction Semantic Web Tools. Originally devised by HP Labs in Bristol, it was developed by Brian McBride of Hewlett-Packard and was derived.
RDF Tutorial.
Jena Sparql 4/11/2017.
 Copyright 2004 Digital Enterprise Research Institute. All rights reserved. SPARQL Query Language for RDF presented by Cristina Feier.
Building and Analyzing Social Networks Web Data and Semantics in Social Network Applications Dr. Bhavani Thuraisingham February 15, 2013.
N3 590SW Stanley Kok. What is N3? Notation triple? “Human-writable” vs RDF/XML – machine-processable expresses the same things as RDF/XML RDF express.
The Web of data with meaning... By Michael Griffiths.
CSCI 572 Project Presentation Mohsen Taheriyan Semantic Search on FOAF profiles.
RDF(S) Tools Adrian Pop, Programming Environments Laboratory Linköping University.
Dr. Alexandra I. Cristea RDF.
1 CIS607, Fall 2005 Semantic Information Integration Instructor/Organizer: Dejing Dou Week 1 (Sept. 28)
COMP 6703 eScience Project Semantic Web for Museums Student : Lei Junran Client/Technical Supervisor : Tom Worthington Academic Supervisor : Peter Strazdins.
Chris Bizer: Semantic Web Toolkits Workshop on Scripting for the Semantic Web (SFSW2005) Sören Auer, Universität Leipzig, Germany Chris Bizer, Freie Universität.
RDF: Building Block for the Semantic Web Jim Ellenberger UCCS CS5260 Spring 2011.
1 DCS861A-2007 Emerging IT II Rinaldo Di Giorgio Andres Nieto Chris Nwosisi Richard Washington March 17, 2007.
My Experience in Building Ontology-driven Applications Harry Chen eBiquity Group Meeting February 9, 2004.
Using Java in Linked Data Applications Fuming Shih Oct 12.
Audumbar Chormale Advisor: Dr. Anupam Joshi M.S. Thesis Defense
Semantic Web Andrejs Lesovskis. Publishing on the Web Making information available without knowing the eventual use; reuse, collaboration; reproduction.
Semantic Web Bootcamp Dominic DiFranzo PhD Student/Research Assistant Rensselaer Polytechnic Institute Tetherless World Constellation.
Triple Stores.
© 2006 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Publishing data on the Web (with.
Managing Large RDF Graphs (Infinite Graph) Vaibhav Khadilkar Department of Computer Science, The University of Texas at Dallas FEARLESS engineering.
Semantic Web. Course Content
Practical RDF Chapter 1. RDF: An Introduction
-By Mohamed Ershad Junaid UTD ID :
1cs The Need “Most of the Web's content today is designed for humans to read, not for computer programs to manipulate meaningfully.” Berners-Lee,
Database Support for Semantic Web Masoud Taghinezhad Omran Sharif University of Technology Computer Engineering Department Fall.
By: Dan Johnson & Jena Block. RDF definition What is Semantic web? Search Engine Example What is RDF? Triples Vocabularies RDF/XML Why RDF?
OntoDoc Chintan Sanjeev Sonal Arpan. Development Status Implementing the Semantic Web stuff over current OntoDoc Webportal Use RedLand RDFKB Some Theorm.
XML and Digital Libraries M. Zubair Department of Computer Science Old Dominion University.
JSON-LD. JSON as an XML Alternative JSON is a light-weight alternative to XML for data- interchange JSON = JavaScript Object Notation – It’s really language.
Using Semantic Web Data: Inference Lalana Kagal Decentralized Information Group MIT CSAIL Eric Prud'hommeaux Engineer World Wide Web Consortium.
RDF and triplestores CMSC 461 Michael Wilson. Reasoning  Relational databases allow us to reason about data that is organized in a specific way  Data.
Using RDF in Agent-Mediated Knowledge Architectures K. Hui, S. Chalmers, P.M.D. Gray & A.D. Preece University of Aberdeen U.K
Semantic Web Programming in Python an Introduction Biju B Jaganath G.
Efficient RDF Storage and Retrieval in Jena2 Written by: Kevin Wilkinson, Craig Sayers, Harumi Kuno, Dave Reynolds Presented by: Umer Fareed 파리드.
Semantic Technologies and Application to Climate Data M. Benno Blumenthal IRI/Columbia University CDW /04-01.
The future of the Web: Semantic Web 9/30/2004 Xiangming Mu.
Introduction to the Semantic Web and Linked Data Module 1 - Unit 2 The Semantic Web and Linked Data Concepts 1-1 Library of Congress BIBFRAME Pilot Training.
Understanding RDF. 2/30 What is RDF? Resource Description Framework is an XML-based language to describe resources. A common understanding of a resource.
Dr. Lowell Vizenor Ontology and Semantic Technology Practice Lead Alion Science and Technology Semantic Technology: A Basic Introduction.
Triple Stores. What is a triple store? A specialized database for RDF triples Can ingest RDF in a variety of formats Supports a query language – SPARQL.
RDF Syntax and examples ดร. มารุต บูรณรัช : หัวข้อพิเศษด้านเทคโนโลยีสารสนเทศขั้นสูง - เทคโนโลยีเว็บเชิงความหมาย.
Steven Perry Dave Vieglais. W a s a b i Web Applications for the Semantic Architecture of Biodiversity Informatics Overview WASABI is a framework for.
Internet Technologies 1 Master of Information System Management Internet Technologies Making Queries on RDF.
© The ATHENA Consortium. Susan Thomas SAP AG, Research Department How do you do semantics? Semantic Web Drawings by Sebastian Cremers Unit 3:
WonderWeb. Ontology Infrastructure for the Semantic Web. IST Project Review Meeting, 11 th March, WP2: Tools Raphael Volz Universität.
RDF storages and indexes Maciej Janik September 1, 2005 Enterprise Integration – Semantic Web.
Sesame A generic architecture for storing and querying RDF and RDFs Written by Jeen Broekstra, Arjohn Kampman Summarized by Gihyun Gong.
Semantic Web in Depth Rules Dr Nicholas Gibbins
Semantic Web In Depth Resource Description Framework Dr Nicholas Gibbins –
Semantic Web. P2 Introduction Information management facilities not keeping pace with the capacity of our information storage. –Information Overload –haphazardly.
CWM Closed World Machine. CWM Overview CWM is a simple Semantic Web program that can do the following tasks – Read and pretty-print several RDF formats.
1 Knowledge Representation XI – IKT437 Knowledge Representation XI – IKT437 Part I RDF Jan Pettersen Nytun, UiA Apache Jena.
Website Source Code Free Download.
Resource Description Framework
CWM Closed World Machine
Using Rules with Ontologies in the Semantic Web
Analyzing and Securing Social Networks
Triple Stores.
JSON for Linked Data: a standard for serializing RDF using JSON
CWM Closed World Machine
Triple Stores.
JSON-LD.
Presentation transcript:

CWM Closed World Machine

CWM Overview CWM is a popular Semantic Web program that can do the following tasks – Parse and pretty-print several RDF formats: XML RDF, Notation3, and Ntriples – Store triples in a queryable triples database – Perform inferences as a forward chaining FOPL inference engine – Perform builtin functions such as comparing strings, retrieving resources, all using an extensible builtins suite CWM was written in Python by Tim Berners-Lee and Dan Connolly of the W3C

What’s CWM good for? CWM is good for experimenting with RDF and RDFS and some OWL The CWM reasoner doesn’t cover all of OWL It’s good as a Unix tool that you can call from the command line Resources include – –

CWM rdf in various encodings rdf in various encodings Reasoning via N3 rules filter

Some alternative libraries If you want to play with RDF and RDFS from a programming language, you might check out some of these: Redland RDF Libraries (C): Jena (Java): Sesame (Java): RDFLib (Python): SWI (Prolog): Wilbur (Lisp):

CWM command line is processed left to right except for flag --pipe and –help Example cwm --rdf foo.rdf --n3 > foo.n3 Here’s what happens: – Switch to RDF/XML input-output format – Read in foo.rdf (use a filename or URI) – Switch to --n3 input-output format – (Output what you have)

Reasoning using N3 Rules N3 has a simple notation for logic-programming like rules These are represented in RDF, of course and can read these into CWM just like a data file Command line args tell CWM to reason – -- apply=foo : read rules from foo, apply to store, adding conclusions to store – --rules : apply once the rules in the store to the store, adding conclusions to the store – --filter=foo : apply rules in foo to the store, REPLACING the store with the conclusions – --think : apply rules in the store to the store, adding conclusions to the store, iteratively until no more conclusions made

N3 facts and rules :Pat owl:sameAs :Patrick. :Man s:subclassOf :Human. :YoungMan s:subclassOf :Man. :father s:domain :Human; s:range :Man. :Sara :father :Alan. { :x :parent :y } => { :y :child :x }. {?x family:parent ?y. ?y family:brother ?z} => {?x family:uncle ?z}. { :thermostat :temp ?x. ?x math:greaterThan "70" } log:implies { :cooling :power "high" }.

A simple example % more simple.n3 # A simple :. :john a foaf:Person; foaf:name "John Smith"; foaf:gender "Male"; foaf:name "John Smith".

Invoking CSM % cwm --n3 simple.n3 #Processed by Id: cwm.py,v /10/28 17:41:59 timbl Exp # using base file:/misc/web/www/691s/examples/n3/simple.n3 # N3 generation by notation3.py,v /10/28 17:41:59 timbl Exp # Base was: :. :john a ; "Male"; "John Smith". #ENDS

genesis # A simple example of family relations using the gedcom :. # data from the Bible in GEDCOM form :fam1 a gc:Family. :Able gc:sex gc:Male; gc:givenName "Able"; gc:childIn :fam1; owl:differentFrom :Cain. :Cain gc:sex gc:Male; gc:givenName "Cain"; gc:childIn :fam1; owl:differentFrom :Able. :Adam gc:sex gc:Male; gc:givenName "Adam"; gc:spouseIn :fam1; owl:differentFrom :Eve. :Eve gc:sex gc:Female; gc:givenName "Eve"; gc:spouseIn :fam1; owl:differentFrom