java - Problem in inferring instances that have integer cardinality constraint -
I created an RDF / OWL file using the proposition 4.1 alpha. I also created a defined class in the proposition called a cheapphone, this class has a restriction that is shown below:
(hasPrice has some integer [<<350])
Whenever, the price of the phone is below 350, it has been estimated as cheap phone. There is no problem registering it in PROPOSY 4.1 alpha. However, I can not guess this by using Jena.
I have also created a defined class named Smartphone. This class also has a restriction that is shown as below:
(has3G value is true) and (is the Internet standard Whenever, a phone 3G and the Internet, it is estimated as a smartphone, in this situation, it is not a problem both in Proteus and Jena. I started thinking that there is a problem with Jena's default information engine. The code I which uses in Java is below:
Risner Logicator = RegenerationRegister.GetoLRJSON (); Logic = arguments Bind Schema (Ontomodel); OntModelSpec ontModelSpec = OntModelSpec.OWL_MEM_MINI_RULE_INF; OntModelSpec.setReasoner (logical); // Prepare a tonality model with logic support / the original model was made and was read before, so I do not share the code in sequence / not to make garbage here. Autorodod model = Modelfactor.CreditOntology MODEL (ontModelSpec, ontModel); OntClass sPhone = model.getOntClass (ns + "smartphone"); Extendeditator s = sPhone.listInstances (); While (s.hasNext ()) {OntResource mp = (OntResource) s.next (); Println (mp.getURI ()); }
This code works perfectly and gives me an example, but when I change the code below and make it suitable for cheap phones, it does not return anything is.
OntClass sPhone = model.getOntClass (ns + "cheapphone");
Am I doing something wrong? Data Category ( [<350]
bit) is a feature
OWL 2. Does not support Jenna Oval 2. See W3C page for a list of devices with OWL 2 support- you have to use one of them (some experimental running works for Jenna are listed here, But of course it has not yet been made in Jena's release.)
Comments
Post a Comment