Search the web
Sign In
New User? Sign Up
jena-dev · Jena Developers
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.

Messages

  Messages Help
Advanced
Messages 34411 - 34441 of 35874   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
34411
... 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...
Ignazio Palmisano
ignazio_io
Offline Send Email
May 1, 2008
10:05 am
34412
... Andy...
Seaborne, Andy
andyseaborne
Offline Send Email
May 1, 2008
12:17 pm
34413
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...
tany_bd
Offline Send Email
May 1, 2008
1:31 pm
34414
... The javadoc helps about the removal: Individual extends OntResource which has a remove(Property, Value) method. For replacing, removing the old and adding...
Ignazio Palmisano
ignazio_io
Offline Send Email
May 1, 2008
1:39 pm
34415
... 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...
Dickinson, Ian J. (HP...
ian_j_dickinson
Offline Send Email
May 1, 2008
1:46 pm
34417
... 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...
caterpillarzjh
Offline Send Email
May 1, 2008
2:06 pm
34418
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...
Sarajane Doogan
sarajane.doogan
Offline Send Email
May 1, 2008
2:09 pm
34419
... 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...
Seaborne, Andy
andyseaborne
Offline Send Email
May 1, 2008
2:27 pm
34420
... Perhaps the results (SPARQL XML string) of this query would help (maybe it's a datatype problem): SELECT * WHERE { ?Sensor pf:hasSensorID ?sensor_id } ...
James Howison
jameshowison
Offline Send Email
May 1, 2008
3:19 pm
34421
... 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...
James Howison
jameshowison
Offline Send Email
May 1, 2008
3:25 pm
34422
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,...
Sarajane Doogan
sarajane.doogan
Offline Send Email
May 1, 2008
3:41 pm
34423
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...
Haibo Yu
yu_haibo
Offline Send Email
May 1, 2008
3:48 pm
34424
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...
caterpillarzjh
Offline Send Email
May 1, 2008
3:55 pm
34425
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...
James Howison
jameshowison
Offline Send Email
May 1, 2008
3:58 pm
34426
Thanks for your response James, Things are a bit clearer now :) ... http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ...
Sarajane Doogan
sarajane.doogan
Offline Send Email
May 1, 2008
5:00 pm
34427
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...
jabjanic
Online Now Send Email
May 1, 2008
5:45 pm
34428
... Not really - there is one top level exception "JenaException" - all Jena-related exceptions extend this. Andy...
Seaborne, Andy
andyseaborne
Offline Send Email
May 1, 2008
7:05 pm
34429
... *crickets* ... and then: Index: src/com/hp/hpl/jena/sparql/util/ResultSetUtils.java ... +++ src/com/hp/hpl/jena/sparql/util/ResultSetUtils.java (working...
James Howison
jameshowison
Offline Send Email
May 1, 2008
7:15 pm
34430
... Remove all statements where your resource appears as subject or object; that should do what you need. HTH, I....
Ignazio Palmisano
ignazio_io
Offline Send Email
May 1, 2008
7:39 pm
34431
Let's say I have owl:Class named 'Book'. And I defined it in my ontology like below: <owl:Class rdf:ID="http://System1#Book"> <owl:ObjectProperty...
narnirajesh
Offline Send Email
May 2, 2008
6:08 am
34432
... 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...
Chris Dollin
kers_ihy
Offline Send Email
May 2, 2008
8:00 am
34433
... 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...
Chris Dollin
kers_ihy
Offline Send Email
May 2, 2008
8:03 am
34434
... And another: OntResource has a remove() method. Ian ____________________________________________________________ Ian Dickinson...
Ian Dickinson
ian_j_dickinson
Offline Send Email
May 2, 2008
8:14 am
34435
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...
Dave Reynolds
derihy
Offline Send Email
May 2, 2008
8:21 am
34436
... 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...
Ignazio Palmisano
ignazio_io
Offline Send Email
May 2, 2008
8:31 am
34437
... 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...
Dave Reynolds
derihy
Offline Send Email
May 2, 2008
8:37 am
34438
From my experience with OntResurce.remove(), if the resource has anonymous super-classes, and moreover, if some of them are UnionClasses or IntersectionClasses...
Shai Benjamin
sheyeh2
Online Now Send Email
May 2, 2008
9:49 am
34439
... Great! Added - actually I added two forms - one to get all the RDFNodes (resources or literals) and one to stringify as per your code. Andy...
Seaborne, Andy
andyseaborne
Offline Send Email
May 2, 2008
10:06 am
34440
... Indeed so. From the Javadoc for OntResource.remove(): """ Caveat: Jena RDF models contain statements, not resources per se, so this method simulates...
Ian Dickinson
ian_j_dickinson
Offline Send Email
May 2, 2008
10:17 am
34441
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...
narnirajesh
Offline Send Email
May 2, 2008
11:17 am
Messages 34411 - 34441 of 35874   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2007 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help