Skip to content

Commit

Permalink
Explain interpretation of samm:curie values (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
atextor authored Jan 29, 2024
1 parent 5c77e72 commit bb16612
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions documentation/modules/ROOT/pages/datatypes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,25 @@ unsuitable in Aspect Models and _should not_ be used:
`xsd:QName`, `xsd:ENTITY`, `xsd:ID`, `xsd:IDREF`, `xsd:NOTATION`, `xsd:IDREFS`, `xsd:ENTITIES`,
`xsd:NMTOKENS`, `rdf:HTML` and `rdf:XMLLiteral`.

[[samm-curie]]
== Value range for `samm:curie` values

Values with the type of `samm:curie` are interpreted in the context of the Aspect Model that
describes the Aspect. The prefix part of their value therefore refers to the RDF prefixes as defined
in the Aspect Model. Aspect Models do not use the https://www.w3.org/TR/turtle/#relative-iri[@base
or BASE] directive in RDF/Turtle, so values with `samm:curie` type must always contain a colon `:`
to delimit the (possibly) empty prefix part from the local name.

.Allowed `samm:curie` values
[options="header"]
|===
| Example Curie value | Allowed | Interpreted as URI
| `unit:hectopascal` | {ok} | `{unit}hectopascal`
| `xsd:string` | {ok} | `\http://www.w3.org/2001/XMLSchema#string`
| `:myProperty` | {ok} | Depends on the Aspect Model's `@prefix :` definition
| `myProperty` | {nok} |
|===

[[implicit-conversions]]
== Implicit Conversions

Expand Down

0 comments on commit bb16612

Please sign in to comment.