logo
down
shadow

reuse property in my own owl ontology but change domain/range


reuse property in my own owl ontology but change domain/range

By : Sonic Xie
Date : November 22 2020, 10:38 AM
hope this fix your issue Declaring a domain and range of a property in OWL doesn't "restrict what it can be applied to", but rather tells you something about the subject and objects of the property. For instance, if you have a class hierarchy such that Human ⊑ Mammal, then if you have a property hasAncestor with domain Human, then whenever you have an object property assertion hasAncestor(x,y), you can infer that Human(x). But since Human ⊑ Mammal, that means that Mammal(x). So, whenever you see hasAncestor(x,y), you can infer that Mammal(x). That means that Mammal is also a domain of hasAncestor. Properties have more than one domain and range.
This means that if you "redeclare" an ObjectProperty in your ontology, you're not actually "redeclaring" it so much as stating additional things about it. However, that's typically not something that you should do. Usually it makes more sense to import the ontology that decalres the property you're interested in, declare a subproperty of it. Because of the way that domains and ranges work, you naturally inherit domains and ranges of the superproperty, and you can declare additional domains and ranges as you see fit.
code :


Share : facebook icon twitter icon
Doubts in development of a basic ontology using RDF/S: ontology reuse and "instance vs. inheritance"

Doubts in development of a basic ontology using RDF/S: ontology reuse and "instance vs. inheritance"


By : chris vale
Date : March 29 2020, 07:55 AM
will help you Your questions, in order:
1) This is technically possible of course, but in my opinion, this is not a good approach. It will immediately make your ontology significantly more complex, both from a human-understanding perspective as well as from a logical perspective: it puts your ontology in a complexity class (OWL Full) that reasoning tools do not deal with.
How to set domain and range of a property in an Ontology modeled in Protege

How to set domain and range of a property in an Ontology modeled in Protege


By : user3156112
Date : March 29 2020, 07:55 AM
it fixes the issue I am using Protege 5.0.0 for developing an ontology. Part of the Ontology is shown in figure at the link: , I believe the pattern:
code :
'propertyName'
can be
one of
'className'
OWL ontology: SPARQL query a range or domain of an ObjectProperty when they're unionOf classes

OWL ontology: SPARQL query a range or domain of an ObjectProperty when they're unionOf classes


By : Harold Lee
Date : March 29 2020, 07:55 AM
fixed the issue. Will look into that further First, note that the semantics of union of domains and ranges may not be what you expect. In OWL, when you say that class D is a domain of property P, it means that whenever you have an assertion P(x,y), you can infer that D(x). That means that if a domain of P is a union C ⊔ D, then from P(x,y), you can infer that x is an element of C ⊔ D; i.e., that x is either a C or a D, but you don't necessarily know which. For instance, you might define:
        hasWings rdfs:domain (Airplane ⊔ Bird)
code :
<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns="http://example.org/"
    xmlns:owl="http://www.w3.org/2002/07/owl#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
  <owl:Ontology rdf:about="http://example.org/"/>
  <owl:Class rdf:about="http://example.org/#A"/>
  <owl:Class rdf:about="http://example.org/#B"/>
  <owl:ObjectProperty rdf:about="http://example.org/#q">
    <rdfs:domain>
      <owl:Class>
        <owl:unionOf rdf:parseType="Collection">
          <owl:Class rdf:about="http://example.org/#A"/>
          <owl:Class rdf:about="http://example.org/#B"/>
        </owl:unionOf>
      </owl:Class>
    </rdfs:domain>
  </owl:ObjectProperty>
  <owl:ObjectProperty rdf:about="http://example.org/#p">
    <rdfs:domain rdf:resource="http://example.org/#A"/>
  </owl:ObjectProperty>
</rdf:RDF>
@prefix :      <http://example.org/> .
@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl:   <http://www.w3.org/2002/07/owl#> .
@prefix xsd:   <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs:  <http://www.w3.org/2000/01/rdf-schema#> .

<http://example.org/#A>
        a       owl:Class .

<http://example.org/#p>
        a            owl:ObjectProperty ;
        rdfs:domain  <http://example.org/#A> .

<http://example.org/#B>
        a       owl:Class .

<http://example.org/#q>
        a            owl:ObjectProperty ;
        rdfs:domain  [ a            owl:Class ;
                       owl:unionOf  ( <http://example.org/#A> <http://example.org/#B> )
                     ] .

:       a       owl:Ontology .
prefix :      <http://example.org/>
prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix owl:   <http://www.w3.org/2002/07/owl#>
prefix xsd:   <http://www.w3.org/2001/XMLSchema#>
prefix rdfs:  <http://www.w3.org/2000/01/rdf-schema#>

select ?p ?d where {
  ?p rdfs:domain/(owl:unionOf/rdf:rest*/rdf:first)* ?d
  filter isIri(?d)
}
-----------------------------------------------------
| p                       | d                       |
=====================================================
| <http://example.org/#q> | <http://example.org/#A> |
| <http://example.org/#q> | <http://example.org/#B> |
| <http://example.org/#p> | <http://example.org/#A> |
-----------------------------------------------------
?p rdfs:domain/(owl:unionOf/rdf:rest*/rdf:first)* ?d
filter isIri(?d)
OWL-DL: property restrictions and/or domain-range?

OWL-DL: property restrictions and/or domain-range?


By : Hang Zhang
Date : March 29 2020, 07:55 AM
wish help you to fix your issue OWL2 has quantified restrictions, which means that you can have class expressions of the form
Setting domain and range of a property

Setting domain and range of a property


By : костя овчинников
Date : March 29 2020, 07:55 AM
To fix this issue You don't have to, but that depends on how you want to model your knowledge base. The cardinality constraint (observedBy exactly 1 Sensor in the figure) looks like a restriction set on the Observation class, as in:
Related Posts Related Posts :
  • How to add extra root nodes for not well formed XML structure?
  • which Uncrustify setting replaces blank lines with indenting spaces?
  • mac OSX Lion Homebrew install curl (77)
  • In Project Euler 47, why is 2^2 considered a prime number distinct from 2?
  • browserstack requesting localhost:45691
  • What was the real reason why Google is chosing RenderScript instead of OpenCL?
  • Mandrill Inbound Email routing
  • Prevent checkElementIndex() Guava function from concatenating additional response to existing error message
  • Arduino and Raspberry Pi Serial communication + multiple variables
  • convert a 960 grid based site to responsive
  • Should it be possible to have more than one DocuSign account (DEMO) with the same email address?
  • Is it possible to limit ammount of concurrent builds in Travis-CI
  • Selecting languages with specific ISO code
  • Deprecated vs Unsupported SDK
  • Verifying ClearCase files have been labeled properly
  • What's the difference between "Bag of Words" and "Bag of features" in computer vision?
  • Is there a way to tell Serde to use a struct field as a map's key?
  • ld:framework not found sfml
  • nice, go-idiomatic way of using a shared map
  • IzPack ChmodInstallerListener.jar
  • Breaking down tasks of user stories between developer and QA
  • Dropwizard service not starting properly
  • How to override devise invitable actions
  • Coded UI. How can I change TimeOut in Find() method
  • Why when I click on the update button error TypeError: r is undefined happen?
  • Visio Component Diagram - Required Interface
  • Lucene: fast(er) to get docs in bulk?
  • can I use windows 8 font (Segoe UI)for my web app?
  • Using Flask Session in Gevent Socket-IO
  • Difference between recommended and suggested cookbooks
  • Dynamic Forms (Formsets) in Flask / WTForms?
  • Image Servlet doesn't want to show image in browser (FireFox, IE..) but in Eclipse browser works?
  • Logback - how to get each logger logging to a separate log file?
  • In Crystal Reports, how do I keep a row from printing if the value is null?
  • iOS 6 Audio multi-route - use external microphone AND internal speaker simultaneously
  • Adding Comments in JasperReports template (jrxml)
  • Servicestack mini profiler
  • Logging with Castle Windsor, the Logging Facility and log4net
  • Subscribe for instances list update in GCE autoscaled group
  • Generating a unique QR code for each Order in Woocommerce
  • libvirtError: internal error Cannot find suitable CPU model for given data
  • CKEditor changing content automatically
  • Pass double pointer in a struct to CUDA
  • Apache Camel for TCP based streamer
  • How to convert old CDC mainframe PRUs to bytes?
  • compilation on Blue Gene Q - ELF header
  • Set border of a jasper subreport having a title and a detail band
  • How to highlight tpl file?
  • cygwin: Starting cron as a service (access denied)
  • Can't access to the object after Importing from SVG
  • Hindi Font with DOMPDF in Codeigniter
  • XMLHttpRequest in a ContentScript from the Firefox SDK (Cross-Domain)
  • Adding javascript file or block to front page only drupal-7
  • No Emulator lists to deploy windows phone app
  • Redirection from component to view in joomla 2.5.8
  • What are possible solution for periodic folder sync between machines on linux?
  • Is there any status of review comments in gerrit
  • How can I permanently customize window size/buffer size of Command Prompt in Windows 7?
  • how to login in magento admin using coding
  • How to get all courses on moodle?
  • shadow
    Privacy Policy - Terms - Contact Us © ourworld-yourmove.org