best practice for using dublin core in tbc

41 views
Skip to first unread message

Luis Enrique Ramos García

unread,
Aug 28, 2024, 3:03:01 AMAug 28
to topbrai...@googlegroups.com
Dear all,

I have an ontology class representing a document.
and I would like to add some dc properties to this class like.

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

Carl Burnett

unread,
Aug 31, 2024, 9:43:42 AMAug 31
to TopBraid Suite Users
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.

Luis Enrique Ramos García

unread,
Oct 8, 2024, 7:57:10 AM (5 days ago) Oct 8
to TopBraid Suite Users
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,"


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

Holger Knublauch

unread,
Oct 8, 2024, 8:06:37 AM (5 days ago) Oct 8
to 'Luis Enrique Ramos García' via TopBraid Suite Users
Hi Luis,

after you have imported that graph, try Transform > Convert OWL Axioms to SHACL Constraints (keeping the OWL axioms). This should assert the missing rdfs:subClassOf triples. Classes without any named superclass cannot be navigated to in the class hierarchy, even if they do exist in general.

Like any ontology that was originally designed for RDF Schema or OWL, note that this may still not look perfect. For example DC Terms seems to require DC Core for sub-property relationships. So this graph will be needed too.

Holger


On 8 Oct 2024, at 1:57 PM, 'Luis Enrique Ramos García' via TopBraid Suite Users <topbrai...@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,"


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.

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 topbrai...@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-user...@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.
<edgissue.png><protege.png>

Luis Enrique Ramos García

unread,
Oct 8, 2024, 8:15:59 AM (5 days ago) Oct 8
to topbrai...@googlegroups.com
Hi Holger,

Thanks so much for your quick answer.

Unfortunately, I just tried that:

2024-10-08_14h08_12.png
In the list only appears an (company internal) ontology listed, thus I did not select it.

but I clicked the "Convert, keeping OWL axioms" button anyway.

However, the result is the same.

I can't visualize anything, after returning to the main view. (success message was received)


Best regards



Luis















Holger Knublauch

unread,
Oct 8, 2024, 8:18:12 AM (5 days ago) Oct 8
to 'Luis Enrique Ramos García' via TopBraid Suite Users
Could you export the ontology for me so that I can see which actual triples are in there?

I had prior to my email just downloaded the DC Terms TTL and used RDF File import to add its triples to an empty Ontology.

Holger



On 8 Oct 2024, at 2:15 PM, 'Luis Enrique Ramos García' via TopBraid Suite Users <topbrai...@googlegroups.com> wrote:

Hi Holger,

Thanks so much for your quick answer.

Unfortunately, I just tried that:

Luis Enrique Ramos García

unread,
Oct 8, 2024, 8:22:04 AM (5 days ago) Oct 8
to topbrai...@googlegroups.com
Sure!


attached are the tll and rdf exported output.


Luis


ramos_dublin_core_terms.ttl
ramos_dublin_core_terms.rdf

David Price

unread,
Oct 8, 2024, 8:22:07 AM (5 days ago) Oct 8
to 'Felix Sasaki' via TopBraid Suite Users
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

--
The topics of this mailing list include TopBraid EDG and related technologies such as SHACL.
To post to this group, send email to topbrai...@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-user...@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.
edgissue.pngprotege.png

David Price, Semantic Solution Architect

Holger Knublauch

unread,
Oct 8, 2024, 8:25:24 AM (5 days ago) Oct 8
to 'Luis Enrique Ramos García' via TopBraid Suite Users
Thanks. I did import that file and re-run the transform and I can see the classes just fine.

I guess you may be on an older version that did not handle rdfs:Classes in the same way that newer versions do?

Holger


To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/CABy94X%3Dkq9S80xyfdcGHgjV%2BBd1SSA1h4%3D%3Df5TBO%3DYiP0FRvaw%40mail.gmail.com.
<ramos_dublin_core_terms.ttl><ramos_dublin_core_terms.rdf>

Holger Knublauch

unread,
Oct 8, 2024, 8:27:30 AM (5 days ago) Oct 8
to topbrai...@googlegroups.com
In any case, if you just want to see these classes, use the Local Assets panel, or the Class List panel with the "also show rdfs:Classes" option activated.

Holger


To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/CABy94X%3Dkq9S80xyfdcGHgjV%2BBd1SSA1h4%3D%3Df5TBO%3DYiP0FRvaw%40mail.gmail.com.
<ramos_dublin_core_terms.ttl><ramos_dublin_core_terms.rdf>

Luis Enrique Ramos García

unread,
Oct 8, 2024, 8:34:26 AM (5 days ago) Oct 8
to topbrai...@googlegroups.com
The current version I am working on is: Version: 7.8.1 (20240214-1729).

I tried importing again the current output, and transforming it, but it does not work as expected.

With the local assets tab, at least I can visualize the elements of the file.


Luis


Luis Enrique Ramos García

unread,
Oct 8, 2024, 8:38:33 AM (5 days ago) Oct 8
to topbrai...@googlegroups.com
Thanks so much David, for your answer.

If that is the only one solution you have for now , I will try it out.

Best R.


Luis Ramos



Luis Enrique Ramos García

unread,
Oct 10, 2024, 3:08:48 AM (3 days ago) Oct 10
to topbrai...@googlegroups.com
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   dcterms:PhysicalResource .

That is also for visualization purposes.


Luis Ramos



El mar, 8 oct 2024 a las 14:22, David Price (<dpr...@topquadrant.com>) escribió:

Holger Knublauch

unread,
Oct 10, 2024, 3:38:32 AM (3 days ago) Oct 10
to 'Luis Enrique Ramos García' via TopBraid Suite Users

On 10 Oct 2024, at 9:08 AM, 'Luis Enrique Ramos García' via TopBraid Suite Users <topbrai...@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   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>) 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 <topbrai...@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,"


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.

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 topbrai...@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-user...@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.
<edgissue.png><protege.png>

David Price, Semantic Solution Architect


--
The topics of this mailing list include TopBraid EDG and related technologies such as SHACL.
To post to this group, send email to topbrai...@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-user...@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.
--
The topics of this mailing list include TopBraid EDG and related technologies such as SHACL.
To post to this group, send email to topbrai...@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-user...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages