Cool IRIs¤
Introduction¤
URIs and IRIs are character strings identifying the nodes and edges in the graph. Defining them is an important step in creating an exploitable Knowledge Graph for your Company.
RFC 3986 defines a generic syntax for URIs:
<scheme>:<scheme-specific-part>
- Scheme-specific part often structured:
<authority>/<path>?<query>
URIs are limited to ASCII characters. IRIs (Internationalized Resource Identifiers) allow Unicode (RFC 3987).
The following list of example IRIs demonstrate the broad scope of this concept:
ftp://ftp.is.co.za/rfc/rfc1808.txt
http://www.ietf.org/rfc/rfc2396.txt
ldap://[2001:db8::7]/c=GB?objectClass?one
mailto:John.Doe@example.com
news:comp.infosystems.www.servers.unix
tel:+1-816-555-1212
telnet://192.0.2.16:80/
urn:oasis:names:specification:docbook:dtd:xml:4.1.2
Best practices in Corporate Memory¤
A good IRI is unique, stable, simple and manageable.
Define a useful IRI-Scheme that can be used for resources.
- Define a Base URI which is the common authority for all resources in your graph.
- Example:
https://data.company.org/
- Example:
- Define subspaces where necessary, e.g. for each subproject or domain. Provide a prefix for each subspace. Examples:
https://data.company.org/hardware/
for hardware artifactshttps://data.company.org/software/
for software artifactsPREFIX cohw: <https://data.company.org/hardware/>
PREFIX cosw: <https://data.company.org/software/>
- Based on these build consistent schemes that define how your IRIs have to be build. Examples:
https://data.company.org/hardware/<ProductClass>/<Serialnumber>
to identify an individual producthttps://data.company.org/hardware/<ProductClass>/<Modelnumber>
to identify a product model
Warning
Do not put a trailing slash on the end of a resource IRIs. As such can not be used with prefix definitions in Turtle or SPARQL, which makes them more difficult to use.
More information¤
- Spanish Government, URIs for Open Data resources
- European Union, URIs for Legal Resources
- UK, “Designing URI sets for the UK public sector”
- Other Resources