Re: [protege-user] hello
Michael DeBellis <[email protected]>
| Newsgroups | gmane.comp.misc.ontology.protege.owl |
|---|---|
| Message-ID | <CALGFikfbw1qGj+f3GzSf-HQm-8HD=Hn6Bff4CM9DH+3vW9Y9vA@mail.gmail.com> |
Stathoula, I tried adding a schema.org prefix to a small test ontology and I noticed some weird behavior. I called the prefix sc: but even though Protege accepted it, that prefix seemed to be bound to some other namespace. So in spite of having defined the prefix in the Ontology Prefixes tab, when I entered sc:Course as a new class the IRI ended up being: http://purl.org/science/owl/sciencecommons/Course. This may not have been the problem you have. I have a few prefixes in most of my files that don't come by default with Protege and it is possible that was where the problem came from. However, when I added scem: as the prefix with the IRI: http://www.schema.org/ Then when I entered scem:Course as a new class, it had the expected IRI: http://www.schema.org/Course See the attached file. This is a small file I'm using for a workshop to show examples of using ChatGPT to generate an ontology (the entire ontology except the classes and the contains and containedIn properties were auto-generated using ChatGPT). But it seems to work for me. Just to be clear, when you add an IRI to the ontology prefixes you don't want those angle brackets around it. Again, check the attached file for an example. Hope that helps. If you are still having problems I suggest you attach the ontology file(assuming it isn't very large) and I'll try and take a look tonight or tomorrow. Cheers, Michael https://www.michaeldebellis.com/blog On Thu, Jan 23, 2025 at 6:14 AM stathoula terzidou <[email protected]> wrote: > i try to add a prefix from the 'Ontology Prefixes' tab and clicking the + > button. At first seems to create it but when switching tabs it disappears > i have a class Course and want to use the schema.org/Course so i was > thinking to create a prefix sch: <http://www.schema.org/> and make the > class Course a owl:Class, sch:Course . > is this correct? > also in the turtle rendering tab why it shows me the full IRIs from all > entities and not with the prefix? > _______________________________________________ > protege-user mailing list > [email protected] > https://mailman.stanford.edu/mailman/listinfo/protege-user > _______________________________________________ protege-user mailing list [email protected] https://mailman.stanford.edu/mailman/listinfo/protege-user
SchemaTest.ttl
(application/octet-stream, 98.1 KB) - not displayed