OP-TED / model2owl

Transform UML into a formal OWL ontology and SHACL shapes
https://meaningfy-ws.github.io/model2owl-docs
European Union Public License 1.2
24 stars 4 forks source link

two shapes instead of one in SHACL shapes #57

Closed costezki closed 3 years ago

costezki commented 3 years ago

ePO-SHACL:

The data properties of type Text, have two shapes to indicate that the datatype must be a rdf:langString AND a ccts:Text. This should be changed to either 1) datatype is rdf:langString OR ccts:Text; 2) just have one of the datatypes.

An example of these shapes:

    <sh:property>
         <sh:PropertyShape>
            <sh:path rdf:resource="http://data.europa.eu/a4g/ontology#hasFax"/>
            <sh:name>Fax</sh:name>
            <sh:datatype rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"/>
         </sh:PropertyShape>
      </sh:property>

      <sh:property>
         <sh:PropertyShape>
            <sh:path rdf:resource="http://data.europa.eu/a4g/ontology#hasFax"/>
            <sh:name>Fax</sh:name>
            <sh:class rdf:resource="http://www.unece.org/cefact#Text"/>
         </sh:PropertyShape>
      </sh:property> 
costezki commented 3 years ago

fixed