Download presentation
Presentation is loading. Please wait.
Published byMadeline Byrd Modified over 8 years ago
1
Linked Data & Semantic Web Technology The Semantic Web Part 3. URI for the Semantic Web Dr. Myungjin Lee
2
Linked Data & Semantic Web Technology 2
3
How to Identify Objects? 3 Concept Object Symbol “Namdeamun” symbolize stand for refer to Concept Object Symbol URI symbolize stand for refer to
4
Linked Data & Semantic Web Technology URI, Thing, and Representation 4 Thing URI Representation http://data.kdata.kr/resource/Namdaemun Namdaemun | kdata.kr Namdaemun at kdata.kr identifies and names represents looks up URI http://dbpedia.org/resource/Namdaemun URI http://data.kdata.kr/resource/Sungnyemun links refers Person Machine
5
Linked Data & Semantic Web Technology URI (Uniform Resource Identifier) a string of characters used to identify a name or a web resource URN (Uniform Resource Name) – persistent, location-independent identifiers for resources URL (Uniform Resource Locator) – a means of locating the resource 5
6
Linked Data & Semantic Web Technology How to call Jim? URN – resource identification by name – teacher: “Student Jim!” URL – resource identification as location – teacher: “Student who seats in the 2 nd row and 3 rd column 6 123 1JohnGraceJin 2SamTomJim 3KevinDanScott in a class
7
Linked Data & Semantic Web Technology Syntax of URN and URL URN – urn: : – Examples urn:isbn:0451450523 urn:issn:0167-6423 urn:ietf:rfc:2648 URL – scheme://username:password@domain:port/path?query_string#fragment_id – Examples http://vnc.example.com:5800 http://en.example.org/wiki/URL http://semantics.kr/search?first_name=John&last_name=Doe 7
8
Linked Data & Semantic Web Technology Cool URIs for the Semantic Web how to use URIs for things that are not Web pages, such as people, products, places, ideas and concepts how the Semantic Web can (and should) be realized as a part of the Web W3C Interest Group Note, 03 December 2008 8
9
Linked Data & Semantic Web Technology URIs for Real-World Objects Be on the Web – Given only a URI, machines and people should be able to retrieve a description about the resource identified by the URI from the Web. – Machines should get RDF data and humans should get a readable representation, such as HTML. Be unambiguous – There should be no confusion between identifiers for Web documents and identifiers for other resources. 9
10
Linked Data & Semantic Web Technology URIs for Real-World Objects 10 Thing URI Representation for Web Browsers http://data.kdata.kr/resource/Namdaemun Namdaemun | kdata.kr Namdaemun at kdata.kr identifies and names represents looks up Person Machine Description for Agents describes
11
Linked Data & Semantic Web Technology The Desired Relationships 11 a foaf:Person; foaf:name "Alice"; foaf:mbox ; foaf:homepage. ID RDFHTML Resource identifier (URI) RDF document URIHTML document URI for web browsersfor semantic web applications
12
Linked Data & Semantic Web Technology Two Solutions for Identifying Real-World Objects Hash URIs – using a fragment, a special part that is separated from the rest of the URI by a hash symbol (“#”) 303 URIs forwarding to Document(s) – to use a special HTTP status code, 303 See Other, to give an indication 12
13
Linked Data & Semantic Web Technology Hash URIs URIs to represent the company, Alice, and Bob – http://www.example.com/about#exampleinc Example Inc., the company – http://www.example.com/about#bob Bob, the person – http://www.example.com/about#alice Alice, the person 13
14
Linked Data & Semantic Web Technology 303 URIs forwarding to Document(s) URIs to represent the company, Alice and Bob – http://www.example.com/id/exampleinc Example Inc., the company – http://www.example.com/id/bob Bob, the person – http://www.example.com/id/alice Alice, the person 14
15
Linked Data & Semantic Web Technology Choosing between 303 and Hash Hash URIs – for small and stable sets of resources when the terms are often used together – for simply uploading static RDF files to a Web server – for large sets of data that are beyond the point where it is practical to serve all related resources in a single document 303 URIs – for such data sets, making neater-looking URIs, but with an impact on run-time performance and server load 15
16
Linked Data & Semantic Web Technology Cool URIs Simplicity – short and mnemonic Stability – remain as long as possible Manageability – issue your URIs in a way that you can manage 16
17
Linked Data & Semantic Web Technology Linking to be linked with each URI related to a real-word object to help information consumers understand their relation three URIs related to Alice – http://www.example.com/id/alice Identifier for Alice, the person – http://www.example.com/people/alice Alice's homepage – http://www.example.com/data/alice RDF document with description of Alice 17 foaf:page ; rdfs:isDefinedBy ; a foaf:Person; foaf:name "Alice"; foaf:mbox ;...
18
Linked Data & Semantic Web Technology Designing URI Sets for the UK Public Sector URIs: – name the set and describe its characteristics – identify for the real-world ‘Things’ in a single concept – provide a means of looking up data on the web – provide mechanisms to: lookup an Identifier URI and be redirected to its Document URI discover and get each of the Representation URIs 18 URI TypeURI structureExamples Identifier http://{domain}/id/{concept}/{reference}http://education.data.gov.uk/id/school/78 Document http://{domain}/doc/{concept}/{reference}http://education.data.gov.uk/doc/school/78 Representation http://{domain}/doc/{concept}/{reference}/ {doc.file-extension} http://education.data.gov.uk/doc/school/78/doc.rdf Definition of the scheme concept http://{domain}/def/{concept}http://education.data.gov.uk/def/school List of scheme identifiers http://{domain}/doc/{concept}http://education.data.gov.uk/doc/school Set http://{domain}/set/{concept}http://education.data.gov.uk/set/school
19
Linked Data & Semantic Web Technology URI Design Principles : Creating Unique URIs for Government Linked Data These principles should produce: – URIs that are easily re-hosted – Concise URIs with as little "cruft" as possible – URIs that span many domains including URI Template: Example – States and Territories Owner – federal Suggested – http://BASE/id/us/state/NAME Example – http://logd.tw.rpi.edu/id/us/state/Vermont 19 'http://' BASE '/' 'id' '/' ORG '/' CATEGORY ( '/' TOKEN )+
20
Linked Data & Semantic Web Technology URI and IRI IRI (Internationalized Resource Identifier) – While URIs are limited to a subset of the ASCII character set, IRIs may contain characters from the Universal Character Set (Unicode/ISO 10646). – use UTF-8 and %HH-escaping for conversion to URIs 20 Encoding (server side/ undefined) us-asciior %HHutf-8 or %HH original characters bytesURIIRI Marchus-ascii/utf-84D 61 72 63 68March Märziso-8859-14D E4 72 7AM%E4rz Märzmacintosh4D 8A 72 7AM%8Arz Märzutf-84D C3 A4 72 7AM%C3%A4rzMärz
21
Linked Data & Semantic Web Technology References http://www.slideshare.net/lysander07/open-hpi-semweb02part1 http://www.slideshare.net/onlyjiny/linkeddata http://en.wikipedia.org/wiki/Uniform_resource_identifier http://en.wikipedia.org/wiki/Uniform_resource_name http://en.wikipedia.org/wiki/Uniform_resource_locator http://www.w3.org/TR/cooluris/ https://www.gov.uk/government/uploads/system/uploads/attachment_data/file/60975/designing-URI-sets-uk-public-sector.pdf http://data.gov.uk/resources/uris http://logd.tw.rpi.edu/instance-hub-uri-design http://en.wikipedia.org/wiki/Internationalized_Resource_Identifier http://www.w3.org/2004/Talks/IUC25iri/Overview.html 21
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.