OP-TED / ePO

The eProcurement Ontology provides the formal, semantic foundation for the creation and reuse of linked open data in the domain of public procurement in the EU.
European Union Public License 1.2
58 stars 18 forks source link

consider using `schema:domainIncludes, rangeIncludes` #399

Closed VladimirAlexiev closed 7 months ago

VladimirAlexiev commented 1 year ago

In relation to https://github.com/OP-TED/model2owl/issues/136:

In addition to rdfs:domain,range consider also using schema:domainIncludes, rangeIncludes. Unlike the rdfs props, the schema props are polymorphic, i.e. can take multiple values.

That's what we did in GS1 EPCIS, see https://github.com/gs1/EPCIS/issues/222 and this example https://github.com/gs1/EPCIS/blob/master/Ontology/EPCIS.ttl#L201 that illustrates well the simplicity of schema:

epcis:action  a           owl:DatatypeProperty , rdf:Property ;
        rdfs:domain       [a owl:Class ;
                           owl:unionOf (epcis:ObjectEvent epcis:AggregationEvent epcis:AssociationEvent epcis:TransactionEvent)] ;
        schema:domainIncludes epcis:ObjectEvent, epcis:AggregationEvent, epcis:AssociationEvent, epcis:TransactionEvent;
        rdfs:range        xsd:string ;
        schema:rangeIncludes xsd:string ;