Re: Example code

2018-03-20 Thread David Moss
not being any. I will try to write some. DM On Mon, Mar 19, 2018 at 12:33 PM, David Moss wrote: > > > On 19/3/18, 5:39 pm, "Lorenz Buehmann" leipzig.de> wrote: > > >Well, isn't that the task of the UI logic

Re: Example code

2018-03-20 Thread David Moss
at I have done. The answer seems to be that there isn't any. I can live with that. If I find the time I'll write some. Then the people in this group can laugh at my efforts and write better examples! DM Sent: Monday, March 19, 2018 at 12:33 PM From: "David Moss"

Re: Example code

2018-03-19 Thread David Moss
e, graph, etc.)" is very glib, but it doesn't actually have anything in the way of example code that can be used by people new to Jena in their own real-world programs. That is what I see as missing. DM On 19.03.2018 08:31, David Moss wrote: > That is

Re: Example code

2018-03-19 Thread David Moss
DM On 19/3/18, 6:56 pm, "Kevin Dreßler" wrote: > > On 19. Mar 2018, at 08:31, David Moss wrote: > > [...] >I see this kind of example as the missing link that prevents anyone other than expert using Jena. >So long as easy to follow

Re: Example code

2018-03-19 Thread David Moss
raditional HTTP GET/POST request to it with two parameters, "query" and "format". For example $ curl --data "format=json&query=..." http://your-endpoint.org Sent: Sunday, March 18, 2018 at 11:26 PM From: "David Moss"

Re: Example code

2018-03-18 Thread David Moss
On 18/3/18, 6:24 pm, "Laura Morales" wrote: >> For example, when using data from a SPARQL endpoint, what is the accepted >> way to retrieve it, store it locally and make it available through user >> interface controls? >Make a query that returns a jsonld document. How? Do

Example code

2018-03-17 Thread David Moss
Nearly all the example code on the web for Jena is restatement of Javadoc. This is better than nothing, but what seems to be missing is examples of how Jena is used in real-world applications. I believe publishing practical examples would dramatically increase the use of Jena and semantic process

Re: Vocabularies for actions

2018-03-17 Thread David Moss
On 18/3/18, 2:20 am, "Laura Morales" wrote: >all the vocabularies that I know of (and that I can find) seem to > *describe* something, like a Person. Is there any vocabulary to *ask for* an > action? For instance in the context of a source code repository, is there > a > dictionary to d

Re: Advice on hardware upgrade

2017-11-22 Thread David Moss
access time. Faster disks might be a better buy if your processor and RAM look OK. David Moss From: John Sanders Sent: Wednesday, November 22, 2017 10:40:38 AM To: users@jena.apache.org Subject: Advice on hardware upgrade Hi, I'm running a Fuseki server on a r

Re: Web 3 vs Web 2

2017-06-07 Thread David Moss
To see the metadata you have to consider the prefix statements that must be made before you can use the triples in your example/ @prefix rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# click on the hyperlink to follow it. Using this prefix statement adds metadata essential to understanding the

Javadoc download for Jena

2017-05-13 Thread David Moss
I see there is great Javadoc for Jena via web browsing, but how can I download the Javadoc so I can include it in an IDE? DM

Re: What are the Alternatives of DBpedia

2017-01-16 Thread David Moss
Sparql endpoint: https://www.mediawiki.org/wiki/Wikidata_query_service/User_Manual#SPARQL_endpoint DM On 16/1/17, 1:56 am, "Dick Murray" wrote: Google for example RDF datasets in a serialisation supported by Jena. A web search really is your best friend for this... O

Re: Queries against rules

2016-11-08 Thread David Moss
;tina sani" wrote: Hello David, I am sorry but I did not understand "use OWL rules in your model to create relationships between objects" for instance. The Jena rules we use are not OWL specific? You mean rules in the Protege? On Tue, Nov 8, 2016 at 7:16 P

Re: Queries against rules

2016-11-08 Thread David Moss
It is my understanding that you use OWL rules in your model to create relationships between objects. You can then query the model using SPARQL and a reasoner. The SPARQL will then not only return the triples explicitly matched, but those that can be inferred using the rules too. See https://jena

Re: [ANNOUNCE] Lorenz Buehmann elected as Committer

2016-11-02 Thread David Moss
Congratulations, Lorenz! Thanks for putting in the effort. DM

Re: Tools for browsing and editing RDF data

2016-11-02 Thread David Moss
Protégé can do that. http://protege.stanford.edu/ DM On 2/11/16, 10:51 pm, "Mikael Pesonen" wrote: Hi, I'm having trouble to find tools which a non-SPARQL person could use for editing and viewing any kind of semantic data on Jena triplestore. For example we have m

Don't put when you really want to add!

2016-10-07 Thread David Moss
Not a question but a red faced admission. String serviceURI = "http://wheremydatawas/ds/data";; DatasetAccessor accessor; accessor = DatasetAccessorFactory.createHTTP(serviceURI); System.out.println("Has http://example/update-base/EQ --> " + accessor.containsModel("http://e

Don't put when you really want to add!

2016-10-04 Thread David Moss
Not a question but a red faced admission. String serviceURI = "http://wheremydatawas/ds/data";; DatasetAccessor accessor; accessor = DatasetAccessorFactory.createHTTP(serviceURI); System.out.println("Has http://example/update-base/EQ --> " + accessor.containsModel("http://

Re: Vague knowledge in Ontologies

2016-07-29 Thread David Moss
On 29/07/2016, 8:23 PM, "tina sani" wrote: > How can we use the vague information, fuzzy based, in our ontologies. a 0.45 Would this do the trick?

Re: Parsing UDFs...

2015-12-28 Thread David Moss
Have you considered Apache Solr/Lucerne? It may be a standard text classification problem for that technology. Sent from my iPhone > On 28 Dec 2015, at 6:04 PM, Jonathan Camilleri > wrote: > > I am trying to come up with an algorithm that parses and creates a machine > learning algorithm e.g

Solved: Jena, Netbeans Platform and xerces

2015-10-08 Thread David Moss
included as a wrapped library in my JenaWrapper module, everything worked! David Moss

netbeans platform and Jena

2015-09-04 Thread David Moss
I¹ve been trying to get my head around the Netbeans Platform lately. In straight Java, written within the Netbeans IDE, my Jena programs work fine. When I try to use it from a wrapped library in a Netbeans Module in a Netbeans Platform program however, it crashes. The code is very straightforward

Re: Time Series Data Modeling in RDF

2015-08-27 Thread David Moss
Why is it necessary to store the additional information in the same triple as the data? RDF lets you store as much information you like about a subject. Just use more triples. a 123 1440709931 Š On 28/08/2015 1:11 am, "Patrick Hoeffel" wrote: >All, > >I know this is not a new t

Re: Creating consistent ids for blank nodes

2015-04-26 Thread David Moss
Is that function guaranteed to return the same blank node every time it is used or is it a temporary coincidence? My reading indicates you can't depend on getting the same blank node ID every time and it's pretty much impossible across systems. When I've dealt with such data I march through it

Re: Creating consistent ids for blank nodes

2015-04-24 Thread David Moss
As far as I am aware blank nodes are called blank for a reason. If you want a named resource, why not just create one? Sent from my iPhone > On 25 Apr 2015, at 5:00 am, souri datta wrote: > > Hi, > When I am parsing an N-quad using Jena, is it possible to keep the blank > node id same after

Re: Ontology-nameSpace

2015-04-06 Thread David Moss
ns = "http://example.com/whateveryouwant#";; Sent from my iPhone > On 7 Apr 2015, at 7:20 am, hlel emna wrote: > > I tried to create an ontology with jena > > String ns=??; > > OntModel m = ModelFactory.*createOntologyModel*(); > > OntClass autt = m.createClass(ns+"Auteur"); > > On

Re: ontology_jena

2015-04-05 Thread David Moss
It is considered bad form to use a domain that you don't own, control or have permission to use in a URL. Try using http://example.com instead. Sent from my iPhone > On 6 Apr 2015, at 4:35 am, hlel emna wrote: > > I tried to create an ontology with jena and I chose the following namespace: >

RE: Using Model inside Java Objects.

2014-11-27 Thread David Moss
ess a property. Multiple namespaces are handled. Works with most/all? Jena Model implementations. It is by nature model I/O intensive so The package has been uses in several projects I have worked on. Claude On Thu, Nov 20, 2014 at 10:13 PM, David Moss wrote: > Until now I have been tr

Using Model inside Java Objects.

2014-11-20 Thread David Moss
Until now I have been treating Jena and RDF like a database connection. I retrieved data and immediately converted it to familiar Java objects with fields, getters, setters and methods. Recently I have been wondering if it might be better to keep the data as a Jena Model within the object and use

Re: Fuseki doubt

2014-11-18 Thread David Moss
I can't see a problem with that. If the triples encoding your rules are in the graph you should be able to send any valid SPARQL query to Fuseki and get a response. I suggest you set up a local Fuseki server and try it. DM Sent from my iPhone > On 19 Nov 2014, at 9:00 am, Miguel Bento Alves w

RE: Anyone had success with Fuseki on Openshift?

2014-10-16 Thread David Moss
t: Re: Anyone had success with Fuseki on Openshift? On 13/10/14 23:17, David Moss wrote: > Thank you for sorting this out for me. > I am indeed interested in fuseki2. > How do I get a copy of the .war file to play with? > It's in the "-distribution" file as "fuseki-server

RE: Anyone had success with Fuseki on Openshift?

2014-10-13 Thread David Moss
Thank you for sorting this out for me. I am indeed interested in fuseki2. How do I get a copy of the .war file to play with? -Original Message- From: Andy Seaborne [mailto:a...@apache.org] Sent: Monday, 13 October 2014 3:13 AM To: users@jena.apache.org Subject: Re: Anyone had success wi

Anyone had success with Fuseki on Openshift?

2014-10-12 Thread David Moss
Has anyone had success with Fuseki on Openshift? I followed the recipe at : https://github.com/semfact/openshift-fuseki/blob/master/README.md And got it up and running. Sort of. When I write to it using either the SPARQL update panel at http://fuseki-admoss.rhcloud.com/sparql.tpl or usin

Jena libraries in Netbeans

2014-04-26 Thread David Moss
Jena libraries in Netbeans Saturday, 26 April 2014 12:38 PM Adding Jena to Netbeans was interesting. Lots of trial and error. There were tutorials on how to do this for Eclipse on the web in April 2014, but nothing for Netbeans. I downloaded the file apache-jena-2.11.1.zip

stream closed

2014-01-03 Thread David Moss
XMLStreamException: ParseError at [row,col]:[338,7] Message: Stream closed I thought I'd share a curious result. I've been experimenting with Jena, Fuseki and JavaServer Faces. I use Netbeans as an IDE and a Fuseki instance on my home server, connected by WiFi to my laptop. Jena and JSF are run

Naming entities

2013-08-14 Thread David Moss
This is a fairly basic question, but how do others go about naming entities in an RDF graph? The semantic web evangelists are keen on URIs that mean something ie <http://admoss.info/David_Moss>. This sounds great but in practice it doesn't scale. There are many people named David

Re: Blank Node Syntax

2013-08-05 Thread David Moss
There is a good discussion of bnodes at https://forums.oracle.com/thread/405401 Sent from my iPhone On 06/08/2013, at 3:46 AM, Iain Ritchie wrote: > Thank you very much - I just missed the quotation. > > INSERT DATA { <_:364370962336464896> "value" } > > Fuseki now seems to g

Re: Blank Node Syntax

2013-08-05 Thread David Moss
That looks like normal behavior to me. Inserting a triple with a blank node as a subject means: Create a new thing with a predicate of this and an object of that, and make up a label for the subject yourself. DMV Sent from my iPhone On 06/08/2013, at 3:46 AM, Iain Ritchie wrote: > Thank you

Re: remote sparql insert from jena

2012-09-19 Thread David Moss
AM, Andrei Petrov wrote: > Hi, > > You need to add commons.logging to your project. I saw this error when > I tried to use rupdate from jena-arq, which also can be an exampe how > to write SPARQL update. > > Hope it helps, > > On Wed, Sep 19, 2012 at 3:17 PM, David