... Try following James's suggestion and print the query before executing it. Post it here so that someone can have a look at it, that will be simpler than...
Dear all, My first question is is it possible to delete or update the value of a data type property using jena api? If its possible which statement is used for...
... The javadoc helps about the removal: Individual extends OntResource which has a remove(Property, Value) method. For replacing, removing the old and adding...
... Quite right; I'd just like to add that setPropertyValue() will remove any existing value before adding a new value, as opposed to addPropertyValue which...
... the ... that your ... msimatch ... UTF-8 - ... Hi Andy, I found that Strings that contain some of the ASCII chars like (char)0 to (char)6 etc will cause...
Hi all, I would greatly appreciate if someone would be able to take the time to clarify a few things for me. I've been doing a lot of research but I'm still...
... Hi there, ... Jena does not check (it's a style thing in Jena - checking every single char of every argument is costly) - you can add this and possibly...
... Perhaps the results (SPARQL XML string) of this query would help (maybe it's a datatype problem): SELECT * WHERE { ?Sensor pf:hasSensorID ?sensor_id } ...
... Depends on what you want to achieve :) (by which I mean, tell us more background of your task). Are you adding OWL statements (eg new classes, class...
Hi James, thanks for getting back to me. Basically I want to use the event ontology for a simple calendar application. So when users register with the site,...
Dear Andy Thank you very much for your quick response and help. The problem has been solved based on your 2nd suggestion. ... In fact, my application was...
thanks Andy. I added some procedure to remove those "control chars". ... I am wondering about this too. It seems that they "mistyped" these chars, maybe using...
It's a good question, I'm not sure what is the best practice. I do what I think you are doing, directly add the Individuals to the OntModel, which avoids...
I want to delete resource "http://interlex.com/johna/MFG/part/1" entirely from the model. I see where I can remove resource Property in the Jena API (to delete...
... Nitpick: `static` isn't access control -- that's the public/protected/private trinity. If the method isn't static, and you declare it synchronised, it uses...
... Handy tip: Model::removeAll(S, P, O). Warning: careless use of this method can delete all your statements. Don't cross the beams. -- "It was starting to...
That approach works OK but in general I'd suggest having the instance data in one OntModel which imports the schema. Whether that is an explicit import...
... Book has the same URI in both cases (btw the definitions don't look like valid RDF/XML, I guess they're just an example), so someone knowing about both...
... This seems to be a generic semantic web question rather than a Jena question. There are two aspects to the problem - how you you find these extensions and...
From my experience with OntResurce.remove(), if the resource has anonymous super-classes, and moreover, if some of them are UnionClasses or IntersectionClasses...
... Indeed so. From the Javadoc for OntResource.remove(): """ Caveat: Jena RDF models contain statements, not resources per se, so this method simulates...
Thank you very much. You explained it very clearly. I read in the articles on web about the distributed nature of Ontologies etc.. , but I didnot understand...