II. About URIs and Labels |
Quality level:
|
|
II. About URIs and Labels, in general
URIs dereferencable to an RDF document
any URI should be dereferencable into an RDF document
human-readable URIs or labels
If an URI is not human-readable,
at least one human-readable rdfs:label should be associated to it
[not yet checked]
2. About "Names" (→ Naming Conventions) for Interoperability Between
RDF and Other formalisms
Unlike most other formal models, RDF proposes the use of IRIs for object identifiers,
and labels for associating informal terms to objects.
Hence, the lexical conventions of most other KRLs (knowledge representation languages) and
in programming languages – do not directly apply to RDF identifiers and labels.
In other words, this page is NOT about "complete URLs" nor about most "RDF labels".
However, these lexical conventions can be adapted (and extended) to RDF by considering
that in RDF a "name" refers to both of the following notions, i.e. generalises them
(this generalization is necessary 1. to formulate for RDF datasets some lexical conventions
similar to those for datasets in other KRLs, and 2. to enable a formulation of these
conventions in a way that is simple and flexible to follow: each convention specifies that,
for each object, "at least one" of its names - from its IRIs or its labels - must comply
with certain constraints, but only one needs to):
- A "formal identifier within a dataset", a term that uniquely identifies an
object within a particular dataset. In some cases, an object identifier is an URL
(e.g. http://www.domainName.com/datasetName#objectIdentifier or
http://www.domainName.com/datasetName/objectIdentifier) composed of
1. a base part which identifies the dataset
(e.g. http://www.domainName.com/datasetName#objectIdentifier) and
2. an "object identifying part" (e.g. #objectIdentifier).
In this case, what is here called "name" is the object identifying part (e.g.
objectIdentifier). In cases where an object identifier does not have such two parts,
what is here called "name" is the whole object identifier.
- A "formal or semi-formal label", i.e. a particular object label (→ rdfs:label)
which – when all the recorded formal identifiers of the object are not human
understandable (e.g. URNs) – is meant to be usable as a (formal or semi-formal)
term for the object when exporting the dataset in a way that is human readable and
using a particular KRL different from RDF.
To enable such an export, the formal or semi-formal label must respect the syntax of
a term in the target KRL. Most KRLs (that do not solely accept IRIs for terms) share
similar syntax for their identifiers. To enable the above cited kind of exports in
many KRLs, the formal or semi-formal labels should follow the shared syntax of
these KRLs. More generally but for the same purpose, it is a good convention to make
these particular labels follow a very common and simple syntax, i.e. not to use
characters other than a-zA-Z0-9-_ (hence no accentuated characters nor any space).
In many KRLs, object identifiers (i.e. formal terms) or object informal names (i.e.
semi-formal or informal terms) are both called "names", hence the terminology used here.
A "formal term" refers to only one object, i.e. it has only one meaning.
A "semi-formal or informal term" is not an object identifier: like most words, it has
many meanings: it refers to many objects. A semi-formal term respect the syntax of a
KRL, an informal term does not.
3. Your own conventions:
Constraint
in
SHACL
in
OWL+Cstr
Query
in SPARQL
|