Added ttl to rdf example
This commit is contained in:
parent
06a1864b2f
commit
56a4642800
1 changed files with 32 additions and 0 deletions
32
doc/id_ttl_to_rdf.md
Normal file
32
doc/id_ttl_to_rdf.md
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
```ttl
|
||||||
|
as:id a owl:DatatypeProperty ,
|
||||||
|
owl:FunctionalProperty,
|
||||||
|
owl:DeprecatedProperty ;
|
||||||
|
rdfs:label "id"@en ;
|
||||||
|
rdfs:range xsd:anyURI ;
|
||||||
|
rdfs:domain [
|
||||||
|
a owl:Class ;
|
||||||
|
owl:unionOf (as:Link as:Object)
|
||||||
|
] .
|
||||||
|
```
|
||||||
|
|
||||||
|
This ttl def can be written as rdf N-Triples:
|
||||||
|
|
||||||
|
```
|
||||||
|
as:id rdf:type owl:DatatypeProperty .
|
||||||
|
as:id rdf:type owl:FunctionalProperty .
|
||||||
|
as:id rdf:type owl:DeprecatedProperty .
|
||||||
|
|
||||||
|
as:id rdfs:label "id"@en .
|
||||||
|
|
||||||
|
as:id rdfs:range xsd:anyURI .
|
||||||
|
|
||||||
|
as:id rdfs:domain _:do .
|
||||||
|
_:do rdf:type owl:Class .
|
||||||
|
_:do owl:unionOf (as:Link as:Object) .
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
_:Object as:id "http://an.uri"
|
||||||
|
_:Object as:type _:do
|
||||||
|
```
|
Loading…
Reference in a new issue