class - Reuse classes from well-known ontologies adding custom properties? - Stack Overflow

I have a question regarding ontology design.I want to reuse the schema:Message class in my ontology. B

I have a question regarding ontology design.

I want to reuse the schema:Message class in my ontology. But, I also want to include both schema properties and custom properties, related to schema:Message. Can I still use schema:Message directly, or should I create a subclass, such as msg:Message owl:subclassOf schema:Message?

For example:

@prefix msg: <http://example/msg#> .
msg:message1 rdf:type schema:Message ; 
      schema:dateCreated "2025-02-25T12:00:00Z"^^xsd:dateTime ;
      schema:dateSent "2025-02-25T12:05:00Z"^^xsd:dateTime ;
      msg:source msg:Producer1.

Here, msg:source is not a Schema property, it's a custom property I am defining.

The same applies to properties. If I want to reuse a property from schema but do not need all the values in its range, how should I handle this? Suppose a property has a range that includes Text and Sensor, but I only want to allow Sensor, can I simply exclude Text, or do I need to create a subclass of the property?

When I say “reuse”, I mean that in Protégé, I import the ontology, use the Refactor function, select Copy, Move, Delete Axioms, and copy elements from schema into my ontology.

I would appreciate any guidance on best practices for ensuring interoperability and consistency.

Thanks in advance!

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744407810a4572720.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信