Compare commits

..

No commits in common. "d7549638cf3d1465f1b8516c3e4940ae1e63fe8e" and "8aea2c5326bb94eb1ec3e9d301c63b0ac0a15769" have entirely different histories.

2 changed files with 10 additions and 10 deletions

View file

@ -4,7 +4,6 @@
- [**rdfs:domain**](#rdfsdomain)
- [owner is **a** type](#owner-is-a-type)
- [owner is a **owl:unionOf** types](#owner-is-a-owlunionof-types)
- [**rdfs:subClassOf**](#rdfssubclassof)
- [Further infos](#further-infos)
- [RDF/S](#rdfs)
- [range (https://www.w3.org/TR/rdf12-schema/#ch\_range)](#range-httpswwww3orgtrrdf12-schemach_range)
@ -25,10 +24,13 @@ as:id a owl:DatatypeProperty ,
Maps to
```clojure
(s/def ::DatatypeProperty any?)
(s/def ::FunctionalProperty any?)
(s/def ::id
(s/and
::owl/DeprecatedProperty
::owl/FunctionalProperty))
::DeprecatedProperty
::FunctionalProperty))
```
Der token `a` in einer ttl Definition entspricht dem RDF-Prädikat `rdf:type`. Siehe:
@ -51,10 +53,12 @@ as:id rdfs:range xsd:anyURI ;
Maps to
```clojure
(s/def ::anyURI p/uri-string?)
(s/def ::id
(s/and
...
::xsd/anyURI))
::anyURI))
```
## **rdfs:domain**
@ -70,10 +74,6 @@ Example in namespace activitypub2
as:id rdfs:domain [a owl:Class;]
```
Maps to
```clojure
```
### owner is a **owl:unionOf** types
It is added to the owner. That's the way to model properties. If the owner is membe of an other namespace, we create a subclass with same name in the namespce in scope and enhance the subclass.
@ -85,10 +85,10 @@ as:id rdfs:domain [owl:unionOf (as:Link as:Object)]
Maps to
```clojure
(s/def ::Object (sh/map-spec (s/keys :opt-un [::id ...])))
(s/def ::Object (s/keys :opt-un [::id ...]))
(s/def ::Link (sh/map-spec (s/keys :opt-un [::id])))
(s/def ::Link (s/keys :opt-un [::id]))
```
## **rdfs:subClassOf**