Properties
There exists two ways of defining a property. One is to embed the property definition inside a type definition:
This will define the https://example.com/MyType/myProperty
property. Note how the base IRI changes inside the braces to match the IRI of the type. The myProperty
relative IRI is resolved into https://example.com/MyType/myProperty
and not https://example.com/myProperty
. For this reason, one may prefer to define properties independently. This can be done using the property
keyword:
It can then be referred to using an absolute, relative, or compact IRI:
As showed in this example, when a property is defined outside the type definition, it is not required to specify its type again.
Last updated