Re: Property stored in Annotaion Section

2017-01-12 Thread Lorenz Buehmann
Again, you ignored my suggestion to UPLOAD THE WHOLE ONTOLOGY and SHOW US THE WHOLE RULE that does not work. Not having an individual FACup in your ontology is not really an explanation for me that a property will be rendered as annotation property in Protege after rule execution and storing the

Re: Semantic Of Jena rule

2017-01-12 Thread tina sani
You said it Lorenz, I just wanted to confirm this syntax is allowed in Jena rules or not? Thanks On Fri, Jan 13, 2017 at 12:22 AM, Lorenz Buehmann < buehm...@informatik.uni-leipzig.de> wrote: > And trying it out is no option for you?! > > What is so confusing about greaterThan and lessThan? I'm

Re: Semantic Of Jena rule

2017-01-12 Thread tina sani
Thank you Dick but I also want the salary to be less than 1. Because in another rule I have condition if salary is greater than 1, then employee is type of NS:ChiefExective. So in that case, Manager instance will also be assigned to ChiefExecutive. It means lowe and upper bound should be

Re: Semantic Of Jena rule

2017-01-12 Thread Lorenz Buehmann
And trying it out is no option for you?! What is so confusing about greaterThan and lessThan? I'm totally puzzled by this question as it's some kind of too obvious. greaterThan(?x, 1000) - what do you think does it mean? "?x is greater than 1000" lessThan(?x, 2000) - what do you think does it

Re: unsubscribe not working

2017-01-12 Thread Andy Seaborne
In what way "not working"? You should get back a message saying "do you want to unsubscribe" or some such so that other people can't unsubscribe you. Do you get the message back or not? And when did you try to unsubscribe? Andy On 12/01/17 09:00, Mark Wharton wrote: Hi Jena users.

Re: Manage Repository (add update delete) in Fuseki from Java

2017-01-12 Thread Fajar Juang
Thanks Andy, it’s a great help! Best regards, Fajar > On 11 Jan 2017, at 20:09, Andy Seaborne wrote: > > An application can invoke the same operations over HTTP. > > (See TestAdmin :: addTestDataset and deleteDataset) > >

unsubscribe not working

2017-01-12 Thread Mark Wharton
Hi Jena users. I've emailed users-unsubscr...@jena.apache.org two times now and I'm still subscribed. Can someone please un-subscribe me manually. Thanks -- Chief Technology Officer, Iotic Labs +44 7973 674404 mark.whar...@iotic-labs.com https://iotic-labs.com

Re: Literal string to appropriate object

2017-01-12 Thread Dave Reynolds
On 12/01/17 10:15, George News wrote: BTW I think I found a bug: String b = "http://datypic.com/fraf1;; Literal a = (Literal) ResourceFactory.createTypedLiteral(b, XSDDatatype.XSDanyURI); System.out.println(a.getDatatype()); System.out.println(a.getValue().getClass()); a = (Literal)

Re: Property stored in Annotaion Section

2017-01-12 Thread Lorenz B.
in your last answer you wrote *String ns="http://www.semanticweb.org/soccer #";* if you provide us no information and the information that you provide is of such poor quality, then it's not possible to help you. Last time that I'll write this here:

Re: Literal string to appropriate object

2017-01-12 Thread George News
On 12/01/2017 9:58, Chris Dollin wrote: > > > On 12/01/17 08:41, George News wrote: >> >> >> On 11/01/2017 18:17, A. Soroka wrote: >>> And I and Chris Dollin answered your question. Again, >>> >>> ResourceFactory.createTypedLiteral("http://hola^^http://www.w3.org/2001/XMSchema#anyURI;, >>>

Re: Literal string to appropriate object

2017-01-12 Thread George News
On 12/01/2017 11:31, Dave Reynolds wrote: > > On 12/01/17 10:15, George News wrote: >> BTW I think I found a bug: >> >> String b = "http://datypic.com/fraf1;; >> Literal a = (Literal) ResourceFactory.createTypedLiteral(b, >> XSDDatatype.XSDanyURI); >> System.out.println(a.getDatatype()); >>

Re: More JSON-LD question

2017-01-12 Thread Andy Seaborne
On 12/01/17 03:35, Conal Tuohy wrote: On 12 January 2017 at 12:34, Grahame Grieve < grah...@healthintersections.com.au> wrote: Consider this JSON-LD: { "@type": "fhir:Claim", "@id": "http://hl7.org/fhir/Claim/760152;, "Quantity.value": { "decimal": 123.45 } "@context": {

Re: Literal string to appropriate object

2017-01-12 Thread Lorenz B.
Exactly, first argument is the value, second one declares the datatype - here XSDDatatype.XSDanyURI, see the Javadoc [1] [1] https://jena.apache.org/documentation/javadoc/jena/org/apache/jena/rdf/model/ResourceFactory.html#createTypedLiteral-java.lang.String-org.apache.jena.datatypes.RDFDatatype-

Re: Literal string to appropriate object

2017-01-12 Thread George News
On 12/01/2017 11:33, Rob Vesse wrote: > Why are you using literals to represent URIs? > > Most people would just use URIs since they are first-class citizens in the > RDF datamodel. It seems like you are forcing yourself through unnecessary > hoops It's representing an endpoint to access a

Re: Literal string to appropriate object

2017-01-12 Thread George News
On 11/01/2017 18:17, A. Soroka wrote: > And I and Chris Dollin answered your question. Again, > > ResourceFactory.createTypedLiteral("http://hola^^http://www.w3.org/2001/XMSchema#anyURI;, > XSDDatatype.XSDanyURI) > > Don't do a bunch of string processing. As I said there is no way of getting

Re: Literal string to appropriate object

2017-01-12 Thread George News
BTW I think I found a bug: String b = "http://datypic.com/fraf1;; Literal a = (Literal) ResourceFactory.createTypedLiteral(b, XSDDatatype.XSDanyURI); System.out.println(a.getDatatype()); System.out.println(a.getValue().getClass()); a = (Literal)

Re: Literal string to appropriate object

2017-01-12 Thread Rob Vesse
Why are you using literals to represent URIs? Most people would just use URIs since they are first-class citizens in the RDF datamodel. It seems like you are forcing yourself through unnecessary hoops Rob On 12/01/2017 10:15, "George News" wrote: BTW I think I found

Re: Literal string to appropriate object

2017-01-12 Thread Claude Warren
You might look at how PA4RDF handled the problem. https://github.com/Claudenw/PA4RDF in https://github.com/Claudenw/PA4RDF/blob/master/src/main/java/org/xenei/jena/entities/impl/PredicateInfoImpl.java the method getHandler() has code that determines what the return type is for a literal. The

Re: Literal string to appropriate object

2017-01-12 Thread Chris Dollin
On 12/01/17 08:41, George News wrote: On 11/01/2017 18:17, A. Soroka wrote: And I and Chris Dollin answered your question. Again, ResourceFactory.createTypedLiteral("http://hola^^http://www.w3.org/2001/XMSchema#anyURI;, XSDDatatype.XSDanyURI) Don't do a bunch of string processing. As I

Re: Literal string to appropriate object

2017-01-12 Thread Dave Reynolds
On 12/01/17 08:41, George News wrote: On 11/01/2017 18:17, A. Soroka wrote: And I and Chris Dollin answered your question. Again, ResourceFactory.createTypedLiteral("http://hola^^http://www.w3.org/2001/XMSchema#anyURI;, XSDDatatype.XSDanyURI) That should be:

Re: Property stored in Annotaion Section

2017-01-12 Thread Lorenz B.
I don't understand your problem now, sorry. It's too confusing. You said that you changed the whole ontology: upload it somewhere such that we can see it Show the final rule that doesn't work, not in pseudo-syntax but how you use it in Jena. Upload the code somewhere > I am sorry for any

Re: Property stored in Annotaion Section

2017-01-12 Thread neha gupta
In simple words, do we need: inf.getResource(URI of FACup) ? I did not use it so far. On Thu, Jan 12, 2017 at 5:57 PM, neha gupta wrote: > I want to ask Lorenz, about the Then part of the rule: > > THEN-> team FavoriteLeague is FACup > > FACup is the resource in

Re: Property stored in Annotaion Section

2017-01-12 Thread Chris Dollin
On 12/01/17 13:40, neha gupta wrote: I am sorry for any inconvenience I have created. I really dont know how to create minimal code snippet or uses Github. To create a minimal complete example, start with some code that demonstrates the problem. Keep throwing away bits of the code that you

Semantic Of Jena rule

2017-01-12 Thread tina sani
The syntax and semantic of this rule is correct? ?emp rdf:type URI:Employee + ?emp URI:NetSalary ?salary+ greaterThan(?salary, 5000), lessThan(?salary, 1)-> ?emp rdf:type URI:Manager Of course this will not execute because I skip proper syntax, but I wonder this rule will work or not if some

Re: Property stored in Annotaion Section

2017-01-12 Thread neha gupta
I want to ask Lorenz, about the Then part of the rule: THEN-> team FavoriteLeague is FACup FACup is the resource in my owl (just followed Create Instance tab in Protege and Protege has give it the default URI like other resources in the file). Before we execute the rule, is it must that we

Re: Property stored in Annotaion Section

2017-01-12 Thread neha gupta
I am sorry for any inconvenience I have created. I really dont know how to create minimal code snippet or uses Github. Coming to the problem, what I noticed is the problem is in the object i-e FACup here. team1 FavoriteLeague FACup Because I made changes and coming to the down, used different

Listing all individuals of an ontology, including those defined in the ontology as individuals of classes coming from import ontology

2017-01-12 Thread Jos Lehmann
Hi there SITUATION -- A I am working with ontology L (denoted as Ontology_input_file in Code below) with URI: http://www.b-l.net/ontologies/2016/L_Ontology.owl# -- B This ontology imports an ontology PS with URI: http://www.b-l.net/ontologies/2016/PS_Ontology.owl# Note that I have added a

Re: Semantic Of Jena rule

2017-01-12 Thread Joint
Have you tried it? What happened? "Of course this will not execute because I skip proper syntax"  So you know the syntax isn't correct but still ask if it is correct.. Dick Original message From: tina sani Date: 12/01/2017 14:47 (GMT+00:00) To:

Re: More JSON-LD question

2017-01-12 Thread Grahame Grieve
hi Andy Also, in JSON, a bare number is a long or double, not decimal, so try > putting in the lexical form in a string: > > >> "Quantity.value": { > >> "decimal": 123.45 > > "decimal": "123.45" > > http://json-ld.org/spec/latest/json-ld/#dfn-number > [[ > a number is equivalent to

Re: More JSON-LD question

2017-01-12 Thread Grahame Grieve
whoops I lost a couple of commas. This works: { "@type": "fhir:Claim", "@id": "http://hl7.org/fhir/Claim/760152;, "Quantity.value": { "decimal": "123.45" }, "@context": { "fhir": "http://hl7.org/fhir/;, "xsd": "http://www.w3.org/2001/XMLSchema#;, "decimal": {

Re: Semantic Of Jena rule

2017-01-12 Thread tina sani
Well, I am not sure about greaterThan and lessThan keywords. Will this rule execute if it encounters salary b/w 5000 and 10,000? On Thu, Jan 12, 2017 at 8:53 PM, Joint wrote: > > > Have you tried it? What happened? > "Of course this will not execute because I skip proper

Cannot reach an SSL-based SPARQL endpoint

2017-01-12 Thread Zak Mc Kracken
Hi all, as per subject, I get the error below when I try to reach an endpoint that is based on SSL and has an invalid/non-signed certificate. I would like to just disable any certificate verification, but this code: https://goo.gl/AglsHv doesn't seem to work with Jena (I've successfully used

Re: Semantic Of Jena rule

2017-01-12 Thread Dick Murray
An example rule which you can test and then expand on is; [Manager: (?E rdf:type NS:Employee), (?E NS:netSalary ?S), greaterThan (?S, 5000) -> (?X rdf:type NS:Manager)] Also see https://jena.apache.org/documentation/inference/ On 12 Jan 2017 19:15, "tina sani" wrote: