360 likes | 472 Views
Implementation of standards using Web technologies. David Leal david.leal@caesarsystems.co.uk. Cool URIs for the Semantic Web. How it can work an overview of how to use HTML and RDF together http://www.w3.org/TR/cooluris/. A key document:. latest version 31 st March 2008. believes. Jane.
E N D
Implementation of standards using Web technologies David Leal david.leal@caesarsystems.co.uk
Cool URIs for the Semantic Web • How it can work • an overview of how to use HTML and RDF together • http://www.w3.org/TR/cooluris/ A key document: • latest version 31st March 2008
believes Jane N3 :Janet :loves :John . Getting started RDF diagram John Janet loves :Jane :believes { }
identify the people identify the human relationships Getting started namespaces @prefix people: <http://www.friends-are-us.com/registry/> . @prefix relationships: <http://www.institute-of_relationships.org/vocabulary#> . people:Janet relationship:loves people:John .
identify the people identify the human relationships Getting started namespaces @prefix people: <http://www.friends-are-us.com/registry/> . @prefix relationships: <http://www.institute-of_relationships.org/vocabulary#> . people:Jane truth:believes { } people:Janet relationship:loves people:John .
Using emerging technologies • Identifying things by HTTP URIs • getting data about them by “dereferencing” • Data as RDF statements • readable RDF as N3 • a little bit of formality from OWL • The importance of standard RDF vocabularies • This is what will make it work • This is our task
About URIs • a URI is just a string of characters • They are unique identifiers for things, which are used on the web • A thing can have more than one URI, but a URI identifies only one thing • HTTP URI • formerly called a URL • The use of an HTTP URI implies that an HTTP (HyperText Transfer Protocol) access, e.g. from a browser, is valid • But you may be disappointed and get “error 404” – no answer was the stern reply • a URN • A URI which does not imply any form of access • used by some organisations – e.g. ISO, ISBN • urn:iso:std:iso:15926:-2 The Web is based upon HTTP URIs – don’t worry about URNs
What a URI identifies Uniform Resource Identifier • a web page • http://www.iom3.org/index.htm • You can open it with your browser – data is downloaded • You can follow links to other web pages • an object • http://www.iom3.org • This is the organisation Institute of Materials, Minerals and Mining • It has a Royal Charter – it cannot be downloaded to a browser • a formula • http://www.iom3.org/formula.n3 • This is a computer interpretable file of RDF statements about the IoM3 • It can be process by Semantic Web browser or by an application
Dereferencing a URI “dereferencing” means attempting to get some data. You can only dereference an HTTP URI. • If the URI identifies a web page – you get it • If the URI identifies an RDF formula – you get it • It the URI identifies an object .... • The object could be the Eiffel Tower, or the Institute of Materials – neither can be downloaded to your browser • either you get nothing (error 404), or you are redirected to a “representation” access to http://www.iom3.org is redirected to http://www.iom3.org/index.htm
A webpage http://www.iom3.org/index.htm The IoM3 has not implemented this – yet click to view the formula
A formula engineering institution type “Institute of Materials Minerals and Mining” title http://www.iom3.org “+44 20 7451 7300” telephone webpage http://www.iom3.org/index.htm organiser “Materials Congress 2008” title http://www.iom3.org/congress-2008 webpage http://www.iom3.org/congress-2008/index.htm
Clever browsers http://www.iom3.org/formula.rdf - Mozilla Firefox http://www.iom3.org/formula.rdf http://www.iom3.org/formula.rdf http://www.iom3.org/formula.rdf http://www.iom3.org/index.htm Is organiser of 2008
Suppose you want a formula • Usually redirection takes you to an HTML web page • This is good, because a person may need to know what a URI identifies – the web page can tell him or her • If an application want the formula, then there are two options: • content negotiation – the HTTP protocol allows the GET request to specify the required format – RDF can be specified • link from the HTML file – this is hidden in the header and is used by applications when required
Suppose you want a formula http://www.iom3.org/index.htm <html> <head> <title>IOM3 - Institute of Materials, Minerals and Mining</title> <link rel="alternate" type="application/rdf+xml" title="RDF Representation" href="http://www.iom3.org/formula.rdf" /> <meta name="description" content="Institute of Materials, Minerals and Mining“/> <meta name="keywords" content="IOM3, IOM, IMM, materials, world, academy, profession, science, engineering, metals, ceramics, polymers, glass, rubber, minerals, mining, plastics, institute, careers, jobs, journals, education"/> ...... link to the formula
Suppose you want a formula http://www.iom3.org/formula.rdf <http://www.iom3.org> a eng-sci:EngineeringInstitution ; dc:title "Institute of Materials, Minerals and Mining" ; con:phone <tel:+44 20 7451 7300> ; foaf:webpage <http://www.iom3.org/index.htm> . <http://www.iom3.org/congress-2008> a eng-sci:Conference ; dc:title "Materials Congress 2008 - Materials for the Future" ; eng-sci:organiser <http://www.iom3.org> .
specified as: – person readable nameplate – bar code – RFID An individual product http://packing-machinery.cn/item/08-12345 Ruian Zhuxin Machinery Co. Ltd. manufactured by item/08-12345 type model/ML1800
dereference to get a formula about the model An individual product http://packing-machinery.cn/item/08-12345 http://packing-machinery.cn/item/08-12345/formula.rdf @prefix rzm: <http://packing-machinery.cn/> . @prefix iso: <http://www.tc184-sc4.org/vocabulary#> . rzm:item/08-12345 iso:manufacturedBy <http://packing-machinery.cn> ; a rzm:model/ML1800 .
who defines the vocabularies? – an ISO or IEC committee – a trade association A class of product http://packing-machinery.cn/model/ML1800 The Ruian Zhuxin Machinery Co has not implemented this – yet – as far as I know http://packing-machinery.cn/model/ML1800/formula.n3 @prefix rzm: <http://packing-machinery.cn/> . @prefix iso: <http://www.tc184-sc4.org/vocabulary#> . @prefix packing <http://www.packing.association.org/vocabulary#> . rzm:model/ML1800 iso:hasMass [ scale:kilogram 14000] ; packing:maximum_rule_length [ scale:metre 50 ] ; packing:speed [ scale:perMinute 16 ] ; packing:motorPower [ scale:kilowatt 11 ] ; ......
Semantic Web - a big opportunity • Intelligent product selection • A super Google™ - You can search on semantically precise attributes rather than text strings • Automatic download into data sheets • Enter the URI of the product, and the relevant fields are filled in by download from the vendor’s site • Automatic validation that a product is really suitable for a role • System can flag an error if the properties of the selected asset are incompatible with the properties of the intended facility
Making it happen • Basic Semantic Web technologies in place • But still very new – some key documents this year • Standardisation bodies assign URIs • URIs will be added to ISO 15926-4 early in 2009 • Need to drag the rest of ISO (and ASTM, DIN etc.) into the 21st century • Who is working on it – Process Industry IDS project • Aker Kvaerner • • ALCIM • • AVEVA • • Bechtel Corporation • • Bentley Systems • • DNV • FIATECH • • Intergraph • • iXIT • Noumenon Consulting• • • OLF • POSC Caesar Association • Statoil • • University of Stavanger
Making it happen • Basic Semantic Web technologies in place • But still very new – some key documents this year • Standardisation bodies assign URIs • URIs will be added to ISO 15926-4 early in 2009 • Need to drag the rest of ISO (and ASTM, DIN etc.) into the 21st century • Who is working on it – and a bigger picture .... • EPC (Electronic Product Codes) • GS1 (Procter and Gamble, Unilever, Wal-Mart, ...) • NATO Codification Bureau • SAP
20 200 20,000 2,000,000 ??,000,000 Making it happen thing classification philosophy OWL individual ISO 15926-2 basic engineering composition flange process oil and gas ISO 15926-4 raised faceflange 2" flange ISO + trade associations commodities API 2″ 300# RF supplier parts Fred Bloggs part type A1234-5 suppliers and manufacturers
What is ISO 15926 for? • To record facts, by the use of reference data • To record changes • Each fact can have a separate audit trail • Support for data warehousing • Large scope requires simple and generic approach
2″ 300/150# RF connection Simple connection example pump P-101 pipe A-256-h 2″ 300# RF 2″ 150# RF thanks to Hans Teijgeler
connection assembly C-101 Simple connection example pump P-101 pipe A-256-h 2″ 300# RF 2″ 150# RF thanks to Hans Teijgeler
Simple connection example connection assembly C-101 pump P-101 pipe A-256-h pump P-101 suction nozzle flange connection assembly C-101 pipe A-256 end 2 flange part of part of type type type 2″ 300/150# RF connection 2″ 150# RF 2″ 300# RF thanks to Hans Teijgeler
Simple connection example connection assembly C-101 pump P-101 pipe A-256-h pipe A-256 end 2 flange composition connection assembly C-101 part whole classified classification in ISO 15926-2 but not needed for RDF implementation classifier 2″ 300/150# RF connection thanks to Hans Teijgeler
Simple connection example connection assembly C-101 pump P-101 pipe A-256-h pump P-101 suction nozzle flange connection assembly C-101 pipe A-256 end 2 flange part of part of type type type 2″ 300/150# RF connection 2″ 150# RF 2″ 300# RF thanks to Hans Teijgeler
Simple connection example connection assembly C-101 pump P-101 pipe A-256-h unit45:A-256-h_end2_fl a api:fl_2in_300pd_rf ; iso:partOf unit45:C_101 ; iso:partOf unit45:A-256-h .
Simple connection example connection assembly C-101 pump P-101 pipe A-256-h unit45:A-256-h_end2_fl a api:fl_2in_300pd_rf ; iso:partOf unit45:C_101 ; iso:partOf unit45:A-256-h .
Simple connection example connection assembly C-101 pump P-101 pipe A-256-h unit45:A-256-h_end2_fl a api:fl_2in_300pd_rf ; iso:partOf unit45:C_101 ; iso:partOf unit45:A-256-h .
Simple connection example connection assembly C-101 pump P-101 pipe A-256-h unit45:A-256-h_end2_fl a api:fl_2in_300pd_rf ; iso:partOf unit45:C_101 ; iso:partOf unit45:A-256-h .
Simple connection example connection assembly C-101 pump P-101 pipe A-256-h URIs assigned by the user @prefix unit45: <http://www.con-oil.com/project4/unit45/> . unit45:A-256-h_end2_fl a api:fl_2in_300pd_rf ; iso:partOf unit45:C_101 ; iso:partOf unit45:A-256-h .
Simple connection example connection assembly C-101 pump P-101 pipe A-256-h URI assigned by a standard body – standard pipe fitting classes @prefix unit45: <http://www.con-oil.com/project4/unit45/> . @prefix api: <http://www.api.org/standard/pipefitting/> . unit45:A-256-h_end2_fl a api:fl_2in_300pd_rf ; iso:partOf unit45:C_101 ; iso:partOf unit45:A-256-h .
Simple connection example connection assembly C-101 pump P-101 pipe A-256-h URI assigned by a standard body – standard pipe fitting classes @prefix unit45: <http://www.con-oil.com/project4/unit45/> . @prefix api: <http://www.api.org/standard/pipefitting/> . @prefix iso: <http://www.tc184-sc4.org/15926/-2/tech/reference-data#> . unit45:A-256-h_end2_fl a api:fl_2in_300pd_rf ; iso:partOf unit45:C_101 ; iso:partOf unit45:A-256-h .