problem with VALUES querybuilder

2017-11-21 Thread Chris Dollin
Dear All I'm missing something with use of the query builder to create VALUES clauses. The code @Test public void buildValues() { SelectBuilder sb = new SelectBuilder(); sb.addValueVar("item", "spoo", "flarn"); System.err.println(sb.buildString()); } generates

Re: problem with query builder

2017-11-20 Thread Chris Dollin
; This is a bug. The problem is that new NodeValueInteger(1); > >>> does not set the Node value that the rewriter is trying to rewrite and > >>> thus > >>> the null pointer exception. > >>> > >>> I will get a fix out shortly. > &g

problem with query builder

2017-11-17 Thread Chris Dollin
Hi, I was experimenting with the query builder and hit a problem when I was attempting to construct an Expr. This example: package com.epimorphics.scratch; import org.apache.jena.arq.querybuilder.ConstructBuilder; import org.apache.jena.sparql.expr.E_GreaterThan; import

Re: Multiunion doubt

2017-09-08 Thread Chris Dollin
On 8 September 2017 at 10:11, George News wrote: > Hi, > > Is multiunion only linking the graphs or copying them in a new graph? > > I'm thinking on splitting a huge graph on many simple ones and them > making the union depending on the part of the main graph that has to be

Re: Fuseki support other query languages

2017-03-05 Thread Chris Dollin
On 04/03/17 13:49, Laura Morales wrote: well I don't have a specific use case in mind, I just find SPARQL very counter-intuitive and difficult to reason with Could you be more specific about these intuitions and difficulties? Chris

Re: Store Questions in owl file

2017-01-31 Thread Chris Dollin
away. It would make sense to have a Questions resource which has multiple Question objects each of which has a string property which is the question text. Chris Regards On Tue, Jan 31, 2017 at 5:09 PM, Chris Dollin <chris.dol...@epimorphics.com> wrote: On 31/01/17 14:05, Sidra shah

Re: Store Questions in owl file

2017-01-31 Thread Chris Dollin
A question would be like: Which country is not Germany's neighbor country(String value)? And questions will be around 10-15 for each user. User1 Questions(data property) and then 10 questions? Regards On Tue, Jan 31, 2017 at 4:58 PM, Chris Dollin <chris.dol...@epimorphics.com> wrote: On 31/01

Re: Store Questions in owl file

2017-01-31 Thread Chris Dollin
On 31/01/17 13:45, Sidra shah wrote: Hello I have a quiz type game in which questions/answers and user information is given in the quiz and stored in owl file. Now I want if a user incorrectly solve some questions, I store them in owl file and associate it with that user like we associate user

Re: How I handle "Null Pointer Exception"

2017-01-17 Thread Chris Dollin
On 17/01/17 13:30, Sidra shah wrote: Hi Lorenz, I am sorry but with much regards, you discussed here the problem, not the solution :) :) I know this if there is no value, there must be Null exception, This is not true. but can you suggest me a way where we dodge the compiler No

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

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.

Re: Property stored in Annotaion Section

2017-01-11 Thread Chris Dollin
teLeague http://www.semanticweb.org/soccer#FACup )]"; //FACupe is resource in the ontology: Then *inf.listStatements(null,favcat,(RDFNode)null);* I think the problem is not in typo because I run similar rule for another data property FavioriteStadium and it also saves in Annotation area. On

Re: Literal string to appropriate object

2017-01-11 Thread Chris Dollin
On 11/01/17 15:42, George News wrote: Literal a = (Literal) ResourceFactory.createTypedLiteral("http://hola^^http://www.w3.org/2001/XMSchema#anyURI;, XSDDatatype.XSDanyURI); System.out.println(a.getDatatype()); System.out.println(a.getLexicalForm()); System.out.println(a.getDatatypeURI());

Re: Property stored in Annotaion Section

2017-01-11 Thread Chris Dollin
On 11/01/17 15:15, neha gupta wrote: Even this not works inf.listStatements(null,favleague,(RDFNode)null); Gives the result but in Annotation area of Protege COMPLETE MINIMAL EXAMPLE, please. You have so many errors & omissions in the code you show us we can't tell which one is the one

Re: Literal string to appropriate object

2017-01-11 Thread Chris Dollin
On 11/01/17 14:55, George News wrote: Hi, I have this literal: http://hola^^http://www.w3.org/2001/XMSchema#anyURI What do you mean by "have"? A String value, a Literal value, or what? And I want to create a URI from it. Is there any way to do so? And do you want an actual URI object or

Re: Property stored in Annotaion Section

2017-01-11 Thread Chris Dollin
On 11/01/17 10:54, neha gupta wrote: I used this to execute the rule for (Iterator i = inf.listResourcesWithProperty(RDF.type, favioriteleague); i.hasNext();) { inf.listStatements(null,RDF.type, "FavioriteLeague"); } I think the problem is here in the code.

Re: Literal Required Exception in SPARQL

2017-01-09 Thread Chris Dollin
On 08/01/17 18:32, javed khan wrote: This query gives me exception: Exception in thread "AWT-EventQueue-0" com.hp.hpl.jena.rdf.model.LiteralRequiredException: http://www.semanticweb.org/t/ontologies#Smith "SELECT * " + " WHERE {" + " {"+ "select (max(?score) as

Re: listResources

2016-11-11 Thread Chris Dollin
On 10/11/16 15:58, kumar rohit wrote: Thank you Chris and Soroka. I have read this and could not understand it properly, that is why I asked the question here. I will be happy if some one give an example with model.listResourcesWithProperty() used in it. What didn't you understand? It's

Re: listResources

2016-11-10 Thread Chris Dollin
On 10/11/16 15:32, kumar rohit wrote: What is mean my model.listResourcesWithProperty()? What it accepts as parameters and what it returns as output? Read the javadoc. Or look at the source. Chris -- "We are on the brink of a new era, if only --" /The Beiderbeck Affair/

Re: Expansion of ARQ acronym

2016-10-10 Thread Chris Dollin
On 09/10/16 19:31, Claude Warren wrote: I thought it was Andy's RDF Queryengine ;) Surely it should be "ARQ is RDF Query"? Chris has recursion integrated somehow -- "Life is full of mysteries. Consider this one of them." Sinclair, /Babylon 5/ Epimorphics Ltd, http://www.epimorphics.com

Re: New entered value does not sum with previous value in owl file

2016-09-30 Thread Chris Dollin
On 30/09/16 14:19, neha gupta wrote: Actually their are many call from other classes thats why it is useless to copy all the code and paste here. Make a minimal complete example -- the smallest piece of code you can produce that shows the problem and that other people and run. Chris

Re: New entered value does not sum with previous value in owl file

2016-09-30 Thread Chris Dollin
On 30/09/16 14:35, neha gupta wrote: Hello Lorenz, I have assigned the value to team1 but mistakenly typed only team. The Chris Dollin comment about "*setPropertyValue is /documented/ as deleting any previous value **for that property" * *makes sense but if I write * team1.addLitera

Re: New entered value does not sum with previous value in owl file

2016-09-30 Thread Chris Dollin
On 30/09/16 12:08, neha gupta wrote: Hello this does not sum the newly entered goals with the one already saved in my owl file. Every time I enter new goal (integer value), new data is saved and does not added(sum) with previously entered values. You are not showing us the code you are using.

Re: Typed value Exception

2016-09-28 Thread Chris Dollin
Show us the code. Show us what soln.getLiteral("goals") is. Maybe it isn't the integer you think it is. OntProperty goals=model.getOntProperty(ns+ "Goals"); How can I get this integer value for future arithmetic operations. On Wed, Sep 28, 2

Re: Typed value Exception

2016-09-28 Thread Chris Dollin
s the code. Show us what soln.getLiteral("goals") is. Maybe it isn't the integer you think it is. OntProperty goals=model.getOntProperty(ns+ "Goals"); How can I get this integer value for future arithmetic operations. On Wed, Sep 28, 2016 at 12:11 AM, Chris Dollin <ch

Re: Typed value Exception

2016-09-28 Thread Chris Dollin
On 27/09/16 21:59, neha gupta wrote: int l = soln.getLiteral("goals").getInt() ; "goals" contain integer value but it gives me exception: Error converting typed value to a number. Print soln.getLiteral("goals") so that we can see the lexical form and type of the literal. Note that spaces

Re: Creating individuals if not already exists

2016-09-06 Thread Chris Dollin
On 06/09/16 14:45, neha gupta wrote: So it means there is no method which check if an individual exists or not? No, it does not mean that. An Individual with URI u "exists" if a Resource with that URI has a property rdf:type of some (Ont)Class. So if you really wanted to know, you can use

Re: EnhGraph polymorphism

2016-08-31 Thread Chris Dollin
On 28/08/16 11:47, Andy Seaborne wrote: So that was a while ago :-) Indeed. To clear up, would this seem like a good plan: 1/ Remove "//extends Polymorphic " 2/ Change the javadoc. No sure what the wording should be (Chris - suggestion?) but something like """ This class adds the

Re: EnhGraph polymorphism

2016-08-26 Thread Chris Dollin
On 26/08/16 12:03, Andy Seaborne wrote: On 26/08/16 00:28, Martynas Jusevičius wrote: Hey, EnhGraph JavaDoc contains: "WARNING. The polymorphic aspects of EnhGraph are not supported and are not expected to be supported in this way for the indefinite future."

Re: question on Eyeball license

2016-07-11 Thread Chris Dollin
On 11/07/16 05:02, Mei Sasaki wrote: Dear developers, Thanks for all your time and effort in developing Apache Jena. I am currently trying to use Eyeball as a validating tool at my workplace. However, I am worried about license issues. I have checked out source code from here;

Re: promises (or not) about result order in tdb find calls

2016-01-27 Thread Chris Dollin
Hi Andy On 26/01/16 15:08, Chris Dollin wrote: Dear All If a dataset graph G backed by TDB runs .find(ANY, ANY, ANY, ANY), Is that Graph.find(?,?,?) on graph G or DatasetGraph.find(?,?,?,?). There isn't a find/4 on Graph. Or is it a default union graph G? It's a DatasetGraph and it's

promises (or not) about result order in tdb find calls

2016-01-26 Thread Chris Dollin
Dear All If a dataset graph G backed by TDB runs .find(ANY, ANY, ANY, ANY), are there any promises made about the order in which quads come out of the iterator? Failing a promise, how about a strong likelihood of some specific order? [1] I ask because we have a (large) dataset for which we wish

Re: transactions and docProducers

2016-01-11 Thread Chris Dollin
Thanks to Andy for his reply. Chris "over-eager on the DELETE button" Dollin

transactions and docProducers

2016-01-08 Thread Chris Dollin
Dear All (Not sure if this is really an @dev or @users question) When Fuseki handles a query (or update), is that query (or update) handled by a single thread or might it be handled by multiple threads over the lifetime of the query (or update)? I ask because * we have a TextDocProducer

Re: Questions about Jena Model difference and isIsomorphicWith with Blank Nodes

2015-09-23 Thread Chris Dollin
On 09/23/2015 04:06 PM, Juan Sequeda wrote: I was looking into the difference and isIsomorphicWith method of a Jena Model when there are Blank Nodes. The isIsomorphicWith returns the expected results when two RDF graphs with blank nodes are effectively isomorphic. However, I would expect that

Re: writing specific triples from Ontology Model with jena owl api into an external file

2015-08-25 Thread Chris Dollin
On 25/08/15 11:37, Ahtisham Aslam wrote: There are multiple reasons, for example, 1-) Data set is very huge ( I extracted records (individuals) of more than 1 million students) so putting all information in one file will make the file very huge Put it in a triple-store -- for example, TDB. If

Re: sparql inside jena

2015-08-22 Thread Chris Dollin
On 08/22/2015 11:47 AM, kumar rohit wrote: This code only displays Student1 where it suppose to display Student1, student2 and student 3 as i made the ontology in Protege so.. In protege it displays all three but here in Jena its output is: | var | === | rr:Student1 | code

Re: sparql inside jena

2015-08-22 Thread Chris Dollin
/we/ gte as a reslt.) Chris On Sat, Aug 22, 2015 at 12:09 PM, Chris Dollin chris.dol...@epimorphics.com wrote: On 08/22/2015 11:47 AM, kumar rohit wrote: This code only displays Student1 where it suppose to display Student1, student2 and student 3 as i made the ontology in Protege so

Re: Re: Query regarding SPARQL with a RDF file using CIDOC-CRM ontology

2014-08-27 Thread Chris Dollin
On Wednesday, August 27, 2014 08:43:04 PM Ravi Vyas wrote: well, unfortunately, i tried with simpler query but still the output is nill, now i am really scared that what is wrong with the query and my deadline is coming closer for this task. Please have a look this query and guide me that what

Re: Re: Saving voluminous RDF model in File?

2014-08-13 Thread Chris Dollin
On Wednesday, August 13, 2014 11:59:47 AM Zahir Kali wrote: Thank you for the help. But i have tried the both RDFDataMgr and RDFWriter but the result is not better. Please be specific about what you tried. Include how big your data is [befor and after inference] and how much memory you gave

Re: Re: Saving voluminous RDF model in File?

2014-08-13 Thread Chris Dollin
On Wednesday, August 13, 2014 02:47:33 PM Zahir Kali wrote: I am using OWL reasoner of Jena. But the problem is not the inference ingine. The inference finished after 2 seconds. The probleme is whene i take resulted Model to save it in a file. If the inference uses backwards rules, it

Re: Re: Circular Dependency

2014-07-14 Thread Chris Dollin
On Monday, July 14, 2014 07:31:34 PM B Ofoghi wrote: how is this conceptually correct? Do you have any real world example? If not, you should perhaps fix the ontology first. Two classes each being a subclass of the other is a way of saying that the classes have the same members. Chris --

Re: SPARQL Describe query

2014-06-23 Thread Chris Dollin
On Monday, June 23, 2014 02:11:00 PM Thorben Wallmeyer wrote: I've got a model/graph that I would like to query. All I do is executing the query DESCRIBE MY_NS://knowledge/my_resource. This returns me all statements that use the named resource as subject. More than that -- it typically does

Re: Jena ARQ functions

2014-04-09 Thread Chris Dollin
On Wednesday, April 09, 2014 12:35:42 PM Walter Travassos wrote: Recentelly I discoverd the functions on ARQ but I ´m having a little dificult to use these functions. I´m trying to query the DBpedia using de function afn:namespaces to find the namespaces of some resources. Here is my code:

Re: Re: Query causes a StackOverflowError

2014-03-18 Thread Chris Dollin
On Monday, March 17, 2014 06:17:10 PM Adam Retter wrote: We did try using the: yourSPARQLEndpoint elda:supportsNestedSelects true. Although I think we found that the option was actually (non-plural): yourSPARQLEndpoint elda:supportsNestedSelect true. Oops, sorry. However, whilst

Re: Fuskei: ordering in Construct

2014-02-27 Thread Chris Dollin
On Thursday, February 27, 2014 01:29:50 PM mark wrote Is there a way to control the ordering of output via CONSTRUCT so that it is handled in the same way as for SELECT? CONSTRUCT builds a graph. The triples in a graph are not ordered. When you render the graph to (eg) Turtle, the renderer can

Re: Re: Fuskei: ordering in Construct

2014-02-27 Thread Chris Dollin
On Thursday, February 27, 2014 01:47:34 PM mark wrote: are there tools to help me with this within fuseki and jena, or am I going to have to write my own sorting implementation on the output stream? If you're on a Unixy OS, sort has already been written and may do what you need. If you can

Re: Re: Re: SPARQL QUERY STRING VARIABLES

2014-02-25 Thread Chris Dollin
On Monday, February 24, 2014 05:57:17 PM Nagore Salaberria wrote: I've tried what you mention me ... and does not work me. Be specific. What did you do and what happened? Was there a compiler error? Did it compile but throw an exception when you ran it? Or did it successfully produce the wrong

Re: SPARQL query string variables

2014-02-25 Thread Chris Dollin
On Tuesday, February 25, 2014 10:29:32 AM Nagore Salaberria wrote: and the parameters are: *FILTER (regex(str(?g),+a+)) .* as you could add to that variable quotes? As I said earlier, write a quote() method and then call it in the appropriate places: \nFILTER (regex(str(?g), +

Re: Re: SPARQL query string variables

2014-02-25 Thread Chris Dollin
On Tuesday, February 25, 2014 11:55:00 AM Nagore Salaberria wrote: and what is the quoate() method? I told you how to write it in a previous post. Chris -- People are part of the design. It's dangerous to forget that. /Star Cops/ Epimorphics Ltd, http://www.epimorphics.com Registered

Re: SPARQL QUERY STRING VARIABLES

2014-02-24 Thread Chris Dollin
On Monday, February 24, 2014 04:39:14 PM Nagore Salaberria wrote: This is my code: *public class rodillos {* *public static void main(String args[])* * {* * try {* * sparqlTest3( Elite AL13 Roller ,Rodillo,200,300 );* * } catch (UnsupportedEncodingException e) {* * // TODO

Re: SPARQL FILTER VARIABLE

2014-02-17 Thread Chris Dollin
On Monday, February 17, 2014 05:24:41 PM Nagore Salaberria wrote: Hello, The SPARQL query works fine if I apply without the input variables, but if you apply the filter variables gives me this error: (1) Variables are prefixed with ?, so I think you want FILTER(?p = ?a ?p = ?b ) (2)

Re: How to solve RiotNotFoundException ?

2014-02-12 Thread Chris Dollin
On Wednesday, February 12, 2014 01:28:29 PM Julien Plu wrote: Hi, In getting the Turtle RDF from this URI : https://www.googleapis.com/freebase/v1/rdf/m/020c55 A RiotNotFoundException is thrown : org.apache.jena.riot.RiotNotFoundException: Not found: @prefix key:

Re: Re: SPARQL FILTER sintax

2014-01-21 Thread Chris Dollin
On Tuesday, January 21, 2014 05:38:22 PM Nagore Salaberria wrote: * FILTER (?p = '300^^xsd:float' ) +* You've put the literal type inside the quotes. Try FILTER(?p = 300^^xsd:float) or even FLTER(?p = 300) Chris -- It's a hat as long as I /say/ it's a hat. Jane, /A College

Re: error of Journal happened in the tdb transaction

2013-12-09 Thread Chris Dollin
On Monday, December 09, 2013 04:35:16 PM Jie wrote: I am working with the Jena TDB and sometimes the following error happens to me. I wonder if this has been happened to others also? If anyone has idea about how to solve this? How many processes are writing to the TDB? [If more than one,

Re: Re: fuseki and websphere 8.5

2013-11-26 Thread Chris Dollin
On Tuesday, November 26, 2013 04:08:58 PM Oinatz Azpiazu Ituarte wrote: Hi: We have created a location-mapping.ttl file, to be deployed with the application. Now, WebSphere, seems to be able to find the file, but the file seems to be wrong: [11/26/13 15:49:40:496 CET] 009a

[ANN] Elda 1.2.26

2013-11-19 Thread Chris Dollin
Dear All We are pleased to announce the release of Elda 1.2.26 [1]. Elda is an implementation of the Linked Data API [2], which allows SPARQL to be generated from configurable RESTful requests and the resulting RDF data to be presented in a variety of formats. Elda is implemented using

Re: Re: Re: Jena property change listener

2013-11-06 Thread Chris Dollin
. Hence my request to show code ... Chris On Tue, Nov 5, 2013 at 8:28 PM, Chris Dollin chris.dol...@epimorphics.comwrote: On Tuesday, November 05, 2013 06:53:17 AM Parastoo Delgoshaei wrote: Claude, Thanks for your response. This solution works only if you have hard coded add/removal

Re: Re: Jena property change listener

2013-11-05 Thread Chris Dollin
On Tuesday, November 05, 2013 06:53:17 AM Parastoo Delgoshaei wrote: Claude, Thanks for your response. This solution works only if you have hard coded add/removal statements (i.e. model.add( S, P, O2 ); or model.remove(s);) However, I do not see any add and removal notifications as a result

Re: Re: How to export uri prefixes within a resourse value

2013-10-30 Thread Chris Dollin
On Tuesday, October 29, 2013 08:01:33 PM Martynas Jusevičius wrote: What you want can be done on the syntactic XML level using entities: rdf:type rdf:resource=rdfs;Resource/ This would require a local entity definition however: !DOCTYPE rdf:RDF [ !ENTITY rdfs

Re: Re: Jena Text Lucene Assembler file questions

2013-10-24 Thread Chris Dollin
On Thursday, October 24, 2013 05:31:06 AM huey...@aol.com wrote: I have another question about performance: Using jena-text with a Lucene index is expected to be faster than a query with a regex filter, correct? That will depend on details, but typically, yes. I ran two queries, returning the

Re: Re: Jena Text Lucene Assembler file questions

2013-10-23 Thread Chris Dollin
On Tuesday, October 22, 2013 05:57:21 PM huey...@aol.com wrote: Seems it does not like the file extension. Renaming it now. Sorry for the amount of mails. When Jena reads a file it uses the file suffix to guess what language the file is in. If it doesn't know the suffix it defaults to RDF/XML.

Re: Re: Jena Text Lucene Assembler file questions

2013-10-23 Thread Chris Dollin
On Wednesday, October 23, 2013 07:53:26 AM huey...@aol.com wrote: The file is called jena_assembler.ttl on my machine. I had to rename it to .txt so the mailing list attachment filter wouldn't remove it. I am getting the error that I attached earlier when executing this from the command line:

Re: Re: Tool to build model from scratch

2013-09-25 Thread Chris Dollin
On Wednesday, September 25, 2013 08:58:35 AM Charles Li wrote: We are developing a product catalog application, which keeps descriptions about product and product relationships attributes. This is an effort to build from scratch, which means that we will let a group of users to manually enter

Re: Help loading Ontology

2013-09-04 Thread Chris Dollin
On Wednesday, September 04, 2013 10:00:51 AM Luis Eufrasio Teixeira Neto wrote: Non-date remarks: ExtendedIteratorOntClass i = ontModel.listClasses(); while (i.hasNext()) { OntClass ontClass = (OntClass) i.next(); String prefix =

Re: Fwd: The Better Looking Output After the SPARQL Query in Java Code

2013-08-20 Thread Chris Dollin
On Tuesday, August 20, 2013 06:01:43 PM Darius Miliauskas wrote: The example of my code (Java) is the following: String queryString2 =PREFIX base: http://www.semanticweb.org/darius/ontologies/2013/6/rooms# + PREFIX rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# Aside:

Re: Re: Typed Literal Compliance/String Literal Escape Characters

2013-08-12 Thread Chris Dollin
On Monday, August 12, 2013 04:19:24 PM Iain Ritchie wrote: Regarding the parse error with the quotations: - Replacement with single ' worked fine. - Replacement with \ allows the insert to occur but the \ is then contained in the literal that is inserted: Are you sure -- it's not just

Re: Calling listNameSpaces() and getNsPrefixMap() on Model

2013-08-01 Thread Chris Dollin
On Wednesday, July 31, 2013 08:47:33 PM Charles Li wrote: Using model.listNameSpaces(), I was able to list all actually, long http://blah.blah# format of namespaces, but I was unable to see what short namespace aliases are assigned to these actual namespaces. Also note that listNamespaces()

Re: Re: Calling listNameSpaces() and getNsPrefixMap() on Model

2013-08-01 Thread Chris Dollin
On Thursday, August 01, 2013 09:18:10 AM Chris Dollin wrote: Hence you won't get namespaces for URIs used only as subjects or objects. (And those namespaces don't need prefixes.) Don't need them for the RDF/XML serialisation, that is. Chris -- The wizard seemed quite willing when I talked

Re: transformation of ontology into relational database

2013-04-25 Thread Chris Dollin
On Wednesday, April 24, 2013 10:40:4 huma seemab wrote: i have extracted classes of ontology by using jena and sparql, now i wants to convert these classes into relational database tables using jena. kindly guide how can i do this. That depends. What is the relational database going to be

Re: Re: mapping a class and a property

2013-04-24 Thread Chris Dollin
On Wednesday, April 24, 2013 06:52:56 AM aarthi wrote: i need to map those two.. so how can i do that? What do you mean by map in map these two? Be specific. Chris -- I know it was late, but Mountjoy never bothers,/Archer's Goon/ so long as it's the full two thousand words.

Re: rdfcat tool working error

2013-04-16 Thread chris dollin
Show us exactly how you set the class path and exactly how you invoked java and the exact text of the error report and any stacktrace. What operating system are you using? On 16 April 2013 03:43, suganya sug...@gmail.com wrote: Hi After setting up classpath for jena i executed the below

Re: rdfcat tool working error

2013-04-16 Thread chris dollin
for jena C:\users\SUGANYASET JENAROOT=C:\jena C:\users\SUGANYASET PATH=%PATH%;%JENAROOT%\bat then C:\users\SUGANYAjava rdfcat.jena Error:could not find or load main class rdfcat.jena can anyone help me to resolve this error... On Tue, Apr 16, 2013 at 10:46 AM, chris dollin ehog.he

Re: Re:

2013-04-08 Thread Chris Dollin
On Monday, April 08, 2013 03:06:39 AM aarthi wrote: hi... i'm comparing two owl files using jena. in that i use this code for comparision private boolean areEqual(RDFNode thisOne, RDFNode thatOne){ if(thisOne.isResource() thatOne.isResource()) return

Re: Property Domains

2013-03-19 Thread Chris Dollin
On Tuesday, March 19, 2013 03:07:29 PM Ed Swing wrote: On to my next unexplainable thing in Jena - Property domains. The code below is trying to identify what properties apply to a class based on the property domain. Here's the code: package ontology; (fx:snip) Several of these are

Re: SPARQL returned space character for Chinese Ontology

2013-03-18 Thread Chris Dollin
On Monday, March 18, 2013 08:43:38 AM kenney wrote: I am using SPARQL in Jena to query a Chinese Ontology. But the results of the query shows only space character so I can't see the exact character. My Chinese Ontology is utf-8 coded. If I use other methods in Jena to read the Ontology

Re: Super/Subclass relationships in OntModel?

2013-03-18 Thread Chris Dollin
On Monday, March 18, 2013 02:48:37 PM Ed Swing wrote: I noticed that the OntClass super/sub relationships do not seem to work properly. Here is a definition of two classes that clearly establish a parent-child relationship: owl:Class rdf:ID=TerrorAttack

Re: inferencing question

2013-03-14 Thread Chris Dollin
On Thursday, March 14, 2013 01:59:03 PM David Jordan wrote: (I shall say you to refer to yourself or your colleague indiscriminately) There is an individual in another organization of my company that is struggling to get something working in Jena. I have advised him several times to post

Re: Parsing unusual URIs

2013-03-06 Thread Chris Dollin
On Wednesday, March 06, 2013 10:23:12 AM Dr. André Lanka wrote: Resource o=model.createResource(mailto:\;xy\@b.de); Isn't that [ mailto:;xy@b.de ] an illegal URI [1] [2] [3]? I suspect what's happening is that touching ARQ is enabling the more rigorous RIOT reader, exposing already-broken

[ANN] Elda 1.2.21

2013-02-28 Thread Chris Dollin
Dear All Epimorphics are pleased to announce the release of Elda 1.2.21. Elda [http://elda.googlecode.com] is an implementation of the Linked Data API [http://code.google.com/p/linked-data-api/wiki/Specification], written in Java and built on Apache Jena [http://jena.apache.org/]. The LDA

Re: writing Jena model out as JSON

2013-02-25 Thread Chris Dollin
On Monday, February 25, 2013 10:14:45 AM Alison Callahan wrote: Hello all, I am using Jena 2.6.4, and I am trying to serialize the contents of a Jena model in JSON. Jena documentation indicates this is possible: http://jena.apache.org/documentation/io/index.html#formats. This page details

Re: Is there a way to use a wildcard in a field in a model.listStatements

2013-01-24 Thread Chris Dollin
On Wednesday, January 23, 2013 04:09:34 PM Scott Streit wrote: Something like subject* for all subjects starting with something? (Don't leave parts of the question lost in the subject line -- ask the whole thing in the message body). You can write a filter on the result of the listSubjects. It

Re: Re: listInstances OntClass problem

2013-01-24 Thread Chris Dollin
On Thursday, January 24, 2013 03:08:35 PM Panagiotis Papadakos wrote: Finally, regarding performance,I would like to know if jena internally uses indices that can provide me fast access from classes to instances and from instances to classes. Else I probably will have to implement them. (a)

Re: SPARQL regular path query runtime

2012-12-17 Thread Chris Dollin
On Monday, December 17, 2012 10:05:29 AM Dang Nguyen wrote: I am confused over the results I obtain when trying to measure the execution time of regular path queries in a model. Essentially, my codes look as follows: // start of code // generate Jena model ... // generate queryString for

Re: Trying to get an identifier for an entire statement

2012-11-28 Thread Chris Dollin
On Tuesday, November 27, 2012 04:23:40 PM Scott Streit wrote: I am using solr as a store for Jena. Works fine until I try reification. I need a way to take a statement (SPO) and have an id for it. Making one up isn't enough? Are you hoping to find specific Statement [objects] from some

Re: Re: Trying to get an identifier for an entire statement

2012-11-28 Thread Chris Dollin
On Wednesday, November 28, 2012 07:38:41 AM Scott Streit wrote: When a extended a statement to an ExtendedStatement which I added a property of reificationId. I then put the ExtendedStatement in the model. Unfortunately, when I pulled back the statement from the model, it was a statement,

Re: Search for Resource is case-sensitive?

2012-09-24 Thread Chris Dollin
On Saturday, September 22, 2012 01:57:59 PM Paul Taylor wrote: Hello there again, I have a Jena model that is stored in an SDBStore backed by MySQL. I would like to know whether a particular Resource exists in the Model. I cannot use the model.getResource(uri) because according to javadoc

Re: Questions about rdfs inference

2012-07-03 Thread Chris Dollin
On Tuesday, July 03, 2012 10:33:57 AM Cong Wang wrote: I am planning to modify the code of rdfs inference in jena, actually I need to add some more rules for domain need.. Does anyone know which part of the code I need to modify??? Do you need to change rdfs inference in Jena, or do you

[ANN] Elda 1.2.13

2012-06-19 Thread Chris Dollin
Dear All I am happy to announce the release of Elda 1.2.13 (Epimorphics' [1] implementation of the Linked Data API [2]. Elda is available from the downloads page [3] of http://elda.googlecode.com. Elda is open source available by cloning its Mercurial repository [4]. The Linked Data API

Re: My code doesn't work :-(

2012-05-29 Thread Chris Dollin
On Tuesday, May 29, 2012 03:25:50 PM Riccardo Tammaro wrote: Hi all. I'm trying to create a OWL file through a java application. The file must be like this: mns:TematicContext rdf:ID=_5 mns:contextNameMy name/contextName mns:contextDescriptionMy desciption/contextDescription