|
Hello Xiaoqi, thank you so much for your work in writing about ontology engineering! I am learning this subject and your content has been very valuable to me. I am looking for some guidance regarding domain and range. In chapter 13.5.2 you talk about multi-domain and multi-range with the example of the property realizedBy and the multi-range classes Business_Process and Application. I get that saying this will cause an intersection between both classes. You also say that ontology engineers may reuse a single semantic relationship rather than, for example, creating two separate properties realizedByBusinessProcess and realizedByApplication. Now here are my questions. Since a multi-range property will infer an instance having all those classes, but in this case won't make sense an individual of both Business_Process class and Application class, is it acceptable to create both properties realizedByBusinessProcess and realizedByApplication? or is there another, preferred, way? Following this idea, I don't know if you can use "OR" while adding the Range axiom. Something like "Range: Business_Process or Application". Will that work? is it advisable? I know that you can add SubClass Of axioms too. I am a bit lost on how to deal with these kinds of properties, I hope you can give me some advice. |
Replies: 8 comments 1 reply
|
Hello Lara, |
|
Hi Lara, Thanks again for your thoughtful question and kind words. This is exactly the right place to ask -- and your questions touch on a subtle but important point that many ontology engineers encounter. As I've completed recently the first 4 volumes ebook structure packaging, and now in the half way of writing SKDL, let me try to address your questions here in order and in different comment so that it would be easier to exchange ideas: 1. Are multiple ranges interpreted as In OWL, when you define multiple ranges for a property (e.g. You asked: "Can yo use The answer is Yes. In Protégé, the Class Expression Eidtor support the syntax with entering In RDF source, you may see them in sequence as below: This means an individual in the range of that property would be inferred to be both a The same applices to multiple domains as well: they are also interpreted as conjunction (intersection). |
|
2. The If you want a property whose range can be either This is the most semantically correct approach in OWL. It tells the reasoners: the target of
In Protégé, your rdf model - after creating the domain/range - should ahve following source: The rdf specially for this question is here: https://github.com/yasenstar/protege_pizza/blob/main/ebook/rdf/pizza-ebook_13.5.2.rdf, including two properties for this and previous point 1, for reference. |
|
3. Creating Separate Properties (Your First Suggestion) You asked: "Is it acceptable to create both properties In my view, Yes, this is acceptable and is a common modeling pattern in practice, however, keep in mind the pros and cons: Advantages:
Disadvantages:
This is the trade-off! In many real-world ontologies, separate properties are preferred for clarity and governance, especially when the relationship has different characteristics depending on the target type. After creating these two properties separately, below you can see the source in RDF model: |
|
4. Using You asked: "Suppose I add in Although I don't utilize this way often, but Yes, this is useful and is actually a very common pattern! I add another clean test RDF here: https://github.com/yasenstar/protege_pizza/blob/main/ebook/rdf/pizza-ebook_13.5.2_2.rdf After creating these two restrictions, you may find the source are adding line-items under Class paragraphs, not Properties anymore: What this does in my observation:
Comparison with Range Axiom:
From my point of view, this is actually a recommended practice in some ontology engineering circles because it avoids the global side effects of |
|
My summary view with above points, @LaraAcuna, feel free to review and comment, I'll leave this discussion open before your confirmation.
Hope those have addressed your questions and concerns in some level, good luck! 🛩️ |
|
Update eBook chapter 13 contents and publish Volume 2 with v0.48.0, thanks greatly @LaraAcuna , here I'm closing this discussion thread and feel free to comments if any new points pop up. |
|
Hello Xiaoqi! |
My summary view with above points, @LaraAcuna, feel free to review and comment, I'll leave this discussion open before your confirmation.
realizedByBusinessProcess,realizedByApplicationowl:unionOfrangeSubClassOf some)rdfs:rangeaxioms