> On 10 Oct 2024, at 9:08 AM, 'Luis Enrique Ramos García' via TopBraid Suite 
> Users <topbraid-users@googlegroups.com> wrote:
> 
> Dear David,
> 
> I followed your recommendation and got the expected results, and to make this 
> issue self contained, here I leave the sparql queries I used:
> 
> INSERT { ?s rdf:type owl:Class .  
> }
> WHERE {
>     ?s rdf:type   sh:NodeShape ;
>        rdfs:isDefinedBy  dct: ; 
>        rdf:type          rdfs:Class .
> }
> 
> 
> INSERT { ?s rdfs:subClassOf owl:Thing .  
> }
> WHERE {
>     ?s rdf:type   sh:NodeShape ;
>        rdfs:isDefinedBy  dct: ; 
>        rdf:type          rdfs:Class ;
>        FILTER (NOT EXISTS { ?s rdfs:subClassOf ?b . })
> }
> 
> moreover, I realized that range and domains  are defined as follows:
> 
> dcam:rangeIncludes   dcterms:PhysicalMedium ;
> dcam:domainIncludes  dcterms:PhysicalResource .
> 
> it would make sense to insert?:
> rdfs:domain    dcterms:PhysicalMedium ;
> rdfs:range <https://www.w3.org/TR/rdf-schema/#ch_range>   
> dcterms:PhysicalResource .

Yes, but only if these are the only values (for rangeIncludes/domainIncludes). 
As soon as there are more than one, the correct mapping would be to use an 
owl:unionOf. And that is hard to create from SPARQL as it requires building an 
rdf:List. Alternatively, the same effect as domainIncludes can be achieved by 
defining a sh:property (or owl:Restriction).

Holger


> 
> That is also for visualization purposes.
> 
> 
> Luis Ramos
> 
> 
> 
> El mar, 8 oct 2024 a las 14:22, David Price (<dpr...@topquadrant.com 
> <mailto:dpr...@topquadrant.com>>) escribió:
>> The TTL file that you link is full of rdfs:Class statements, so in fact the 
>> Protege view of those classes is actually “wrong” because they are not 
>> owl:Class. Protege must be pretending they are OWL for you or perhaps have 
>> some internal processing of well-known ontologies.
>> 
>> In these cases in EDG, I just use SPARQL and add in the subClassOf owl:Thing 
>> statements for anything with no superclass, and add the rdf:type owl:Class 
>> statements too.
>> 
>> We are looking at improving EDG support for public RDFS and OWL ontologies 
>> and so will look at this case as input into that work.
>> 
>> Cheers,
>> David
>> 
>>> On 8 Oct 2024, at 12:57, 'Luis Enrique Ramos García' via TopBraid Suite 
>>> Users <topbraid-users@googlegroups.com 
>>> <mailto:topbraid-users@googlegroups.com>> wrote:
>>> 
>>> Hi Carl,
>>> 
>>> Thanks for your answer, and sorry for my late reply.
>>> 
>>> i followed the procedure you indicated: " You could also create an actual 
>>> Ontology asset collection for it in EDG and then import the TTL into this,"
>>> 
>>> more precisely, this file: 
>>> https://www.dublincore.org/specifications/dublin-core/dcmi-terms/dublin_core_terms.ttl.
>>> 
>>> But, I can not visualize anything in there:
>>> 
>>> <edgissue.png>
>>> while in protégé editor I have the following result:
>>> 
>>> <protege.png>
>>> 
>>> Thus, I wonder what should I be doing wrong?.
>>> 
>>> 
>>> Best regards
>>> 
>>> 
>>> Luis Ramos
>>> 
>>> 
>>> 
>>> 
>>> On Saturday, August 31, 2024 at 3:43:42 PM UTC+2 Carl Burnett wrote:
>>>> Yes, I have downloaded the DCMI Metadata Terms vocabulary in Turtle format 
>>>> and made it available for inclusion in my Ontologies via Files. You could 
>>>> also create an actual Ontology asset collection for it in EDG and then 
>>>> import the TTL into this, if you wanted it to be easily editable in EDG.
>>>> 
>>>> On Wednesday, August 28, 2024 at 12:03:01 AM UTC-7 Luis Enrique Ramos 
>>>> García wrote:
>>>>> Dear all,
>>>>> 
>>>>> I have an ontology class representing a document.
>>>>> and I would like to add some dc properties to this class like.
>>>>> contributor 
>>>>> <https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/elements/1.1/contributor>,
>>>>>  coverage 
>>>>> <https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/elements/1.1/coverage>,
>>>>>  creator 
>>>>> <https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/elements/1.1/creator>,
>>>>>  date 
>>>>> <https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/elements/1.1/date>,
>>>>>  description 
>>>>> <https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/elements/1.1/description>,
>>>>>  format 
>>>>> <https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/elements/1.1/format>,
>>>>>  identifier 
>>>>> <https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/elements/1.1/identifier>,
>>>>>  language 
>>>>> <https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/elements/1.1/language>,
>>>>>  publisher 
>>>>> <https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/elements/1.1/publisher>,
>>>>>  relation 
>>>>> <https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/elements/1.1/relation>,
>>>>>  rights 
>>>>> <https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/elements/1.1/rights>,
>>>>>  source 
>>>>> <https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/elements/1.1/source>,
>>>>>  subject 
>>>>> <https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/elements/1.1/subject>,
>>>>>  title 
>>>>> <https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/elements/1.1/title>,
>>>>>  type 
>>>>> <https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/elements/1.1/type>
>>>>> 
>>>>> Then, I assume this vocabulary should be available in tbc, but I do not 
>>>>> find a way to include it in my ontology.
>>>>> 
>>>>> Thus, I wonder which should be the best practice to get it done?
>>>>> 
>>>>> Should I download the ontology and directly include it into tbc?
>>>>> 
>>>>> 
>>>>> Best regards
>>>>> 
>>>>> 
>>>>> Luis Ramos
>>> 
>>> 
>>> -- 
>>> The topics of this mailing list include TopBraid EDG and related 
>>> technologies such as SHACL.
>>> To post to this group, send email to topbraid-users@googlegroups.com 
>>> <mailto:topbraid-users@googlegroups.com>
>>> --- 
>>> 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 topbraid-users+unsubscr...@googlegroups.com 
>>> <mailto:topbraid-users+unsubscr...@googlegroups.com>.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/topbraid-users/f7340296-7537-4beb-8a44-dfc73944341an%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/topbraid-users/f7340296-7537-4beb-8a44-dfc73944341an%40googlegroups.com?utm_medium=email&utm_source=footer>.
>>> <edgissue.png><protege.png>
>> 
>> David Price, Semantic Solution Architect
>> UK +44 (0) 7788 561308
>> US +1 (336) 283-0808‬
>> TopQuadrant.com <https://www.topquadrant.com/>
>> 
>> -- 
>> The topics of this mailing list include TopBraid EDG and related 
>> technologies such as SHACL.
>> To post to this group, send email to topbraid-users@googlegroups.com 
>> <mailto:topbraid-users@googlegroups.com>
>> --- 
>> 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 topbraid-users+unsubscr...@googlegroups.com 
>> <mailto:topbraid-users+unsubscr...@googlegroups.com>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/topbraid-users/14428039-89B0-4F35-8313-7B52A767494A%40topquadrant.com
>>  
>> <https://groups.google.com/d/msgid/topbraid-users/14428039-89B0-4F35-8313-7B52A767494A%40topquadrant.com?utm_medium=email&utm_source=footer>.
> 
> 
> -- 
> The topics of this mailing list include TopBraid EDG and related technologies 
> such as SHACL.
> To post to this group, send email to topbraid-users@googlegroups.com
> --- 
> 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 topbraid-users+unsubscr...@googlegroups.com 
> <mailto:topbraid-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/CABy94Xmx9O4qO893VqvCZPsDtZwvPG5xDcCib4LeC0_4gq9vWw%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/CABy94Xmx9O4qO893VqvCZPsDtZwvPG5xDcCib4LeC0_4gq9vWw%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
The topics of this mailing list include TopBraid EDG and related technologies 
such as SHACL.
To post to this group, send email to topbraid-users@googlegroups.com
--- 
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 topbraid-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/22A82514-3D4F-4391-9D86-26C99BD38412%40topquadrant.com.

Reply via email to