Tim

You will also need to add:

edg:DataElement
  sh:property edg:DataElement-mapsToPropertyShape ;
.

> On Apr 16, 2020, at 4:52 PM, Ralph TQ [Gmail] <[email protected]> 
> wrote:
> 
> Hi Tim,
> 
> Replies inline.
> 
>> On Apr 16, 2020, at 4:11 PM, Tim Smith <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>> Hi Ralph,
>> 
>> Should edg:mapsToProperty point to the property or the property shape?
> 
> Right now it resolves to instances of rdf:Property
> 
> I can add another property to map to property shape. I will call it 
> ‘egg:mapsToPropertyShape’
> 
> You can paste the following into an overlay graph (or the supplied SCHEMA 
> graph for Data Assets:
> 
> edg:mapsToPropertyShape
>   rdf:type owl:ObjectProperty ;
>   rdfs:comment "Associates an asset, such as a data element, with a SHACL 
> property shape holding an occurrence of a datatype or object property on an 
> ontology class. The filtering of values is over the ontologies that are 
> included by the instance of the model that is being edited." ;
>   rdfs:isDefinedBy <http://edg.topbraid.solutions/1.0/schema/datamodels 
> <http://edg.topbraid.solutions/1.0/schema/datamodels>> ;
>   rdfs:label "maps to property shape" ;
>   rdfs:subPropertyOf edg:mapsTo ;
> .
> 
> edg:DataElement-mapsToPropertyShape
>   rdf:type sh:PropertyShape ;
>   sh:path edg:mapsToPropertyShape ;
>   rdfs:isDefinedBy <http://edg.topbraid.solutions/1.0/schema/datamodels 
> <http://edg.topbraid.solutions/1.0/schema/datamodels>> ;
>   sh:class sh:PropertyShape ;
>   sh:group edg:TraceableGroup ;
>   sh:not tosh:SystemNamespaceShape ;
>   sh:order 95 ;
> .
> 
> With this approach having property shapes as named resource as opposed to 
> blank nodes will be important.
> 
> Ralph
> 
>> For example, in the case of a "generic" property like description that will 
>> be used across many class definitions, such that:
>> 
>> :Product :description "product description"  mapsTo Product Table ---> 
>> Description Column for Product (ProdDesc)
>> 
>> :Material :description "material description" mapsTo Material Table ---> 
>> Description Column for Material (MatDesc)
>> 
>> In this case, I can point both ProdDesc and MatDesc to :description using 
>> edg:mapsToProperty but if I walk from Product to the Product-Description 
>> property shape to the :description property, I won't know which column I 
>> actually need for Product vs Material.
>> 
>> Thanks,
>> 
>> Tim
>> 
>> On Thu, Apr 16, 2020 at 1:48 PM Ralph TQ [Gmail] <[email protected] 
>> <mailto:[email protected]>> wrote:
>> There is a property “mapsToProperty” defined in the SCHEMA EDG Data Assets 
>> that allows you to make the mappings.
>> 
>> Here is how it is defined:
>> 
>> <Screen Shot 2020-04-16 at 1.45.25 PM.png>
>> 
>> And here is the SHACL property constraint that makes use of it, placing the 
>> values in a property group for "Traceability":
>> 
>> edg:DataElement-mapsToProperty
>>   rdf:type sh:PropertyShape ;
>>   sh:path edg:mapsToProperty ;
>>   rdfs:isDefinedBy <http://edg.topbraid.solutions/1.0/schema/datamodels 
>> <http://edg.topbraid.solutions/1.0/schema/datamodels>> ;
>>   sh:class rdf:Property ;
>>   sh:group edg:TraceableGroup ;
>>   sh:not tosh:SystemNamespaceShape ;
>>   sh:order 90 ;
>> .
>> 
>> 
>> 
>>> On Apr 16, 2020, at 1:39 PM, Tim Smith <[email protected] 
>>> <mailto:[email protected]>> wrote:
>>> 
>>> <image.png>
>> 
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "TopBraid Suite Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] 
>> <mailto:[email protected]>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/topbraid-users/9C3DCD70-169F-40A3-A452-653506F7CA3C%40topquadrant.com
>>  
>> <https://groups.google.com/d/msgid/topbraid-users/9C3DCD70-169F-40A3-A452-653506F7CA3C%40topquadrant.com?utm_medium=email&utm_source=footer>.
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "TopBraid Suite Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] 
>> <mailto:[email protected]>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/topbraid-users/CAF0WbnLAxHcigaHpTtk6h-Jn2k1E%2BHYR0NzgJyBJr_Gficqj_A%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/topbraid-users/CAF0WbnLAxHcigaHpTtk6h-Jn2k1E%2BHYR0NzgJyBJr_Gficqj_A%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/D2C2C46E-D193-42B7-9898-74A866D6F2A9%40topquadrant.com.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to