ignore domain .. a in mapping

This commit is contained in:
Michael Jerger 2023-07-28 13:15:19 +02:00
parent 0fadba5e53
commit 97eb76b8d3

View file

@ -9,7 +9,6 @@
- [range (https://www.w3.org/TR/rdf12-schema/#ch\_range)](#range-httpswwww3orgtrrdf12-schemach_range) - [range (https://www.w3.org/TR/rdf12-schema/#ch\_range)](#range-httpswwww3orgtrrdf12-schemach_range)
- [type (https://www.w3.org/TR/rdf12-schema/#ch\_type)](#type-httpswwww3orgtrrdf12-schemach_type) - [type (https://www.w3.org/TR/rdf12-schema/#ch\_type)](#type-httpswwww3orgtrrdf12-schemach_type)
# receipts to transform ttl to spec # receipts to transform ttl to spec
## **a** ## **a**
@ -68,21 +67,13 @@ Maps to
### owner is **a** type ### owner is **a** type
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. We ignore this.
Example in namespace activitypub2 Example in namespace activitypub2
```ttl ```ttl
as:id rdfs:domain [a owl:Class;] as:id rdfs:domain [a owl:Class;]
``` ```
Maps to
```clojure
(s/def
::Class
(s/merge ::owl/Class
(s/keys :opt-un [::id])))
```
### owner is a **owl:unionOf** types ### 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. 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.