OntModel.read parsing non-suffixed TTL as RDF/XML

2018-03-06 Thread lewis john mcgibbney
Hi Folks, Over on the SWEET ontology suite [0] we recently changed out canonical serialization to TTL. Additionally however, we removed all file suffixes from the resources themselves, therefore although the following resource [1] is serialized as TTL, you would never know unless you looked at it

Re: OntModel.read parsing non-suffixed TTL as RDF/XML

2018-03-13 Thread Lewis John McGibbney
aphs using this vocabulary? >   >   > > Sent: Wednesday, March 07, 2018 at 5:28 AM > From: "lewis john mcgibbney" > To: users@jena.apache.org > Subject: OntModel.read parsing non-suffixed TTL as RDF/XML > Hi Folks, > > Over on the SWEET ontology suite [0] we

Re: OntModel.read parsing non-suffixed TTL as RDF/XML

2018-03-13 Thread Lewis John McGibbney
RDFDataMgr which > has more sophisticated conneg support, or to change the default syntax > to Turtle. Then install that FileManager in the OntDocumentManager you > use for your loading. I will try this and let you know. Thank you Lewis > > Dave > > > On 07/03/18 04

Re: OntModel.read parsing non-suffixed TTL as RDF/XML

2018-03-13 Thread Lewis John McGibbney
d the data via the newer RDFDataMgr which > > has more sophisticated conneg support, or to change the default syntax > > to Turtle. Then install that FileManager in the OntDocumentManager you > > use for your loading. > > > > Dave > > > > > > On

Re: OntModel.read parsing non-suffixed TTL as RDF/XML

2018-03-13 Thread Lewis John McGibbney
a via the newer > >> RDFDataMgr which has more sophisticated conneg support, or to change > >> the default syntax to Turtle. Then install that FileManager in the > >> OntDocumentManager you use for your loading. > >> > >> Dave > >> > >>

Re: OntModel.read parsing non-suffixed TTL as RDF/XML

2018-03-13 Thread Lewis John McGibbney
Thanks Andy, OK I've added this dependency to the project and te result is just the same. I am going to try Dave's suggestion. Thanks Lewis On 2018/03/13 18:51:06, Andy Seaborne wrote: > > > On 13/03/18 18:44, Lewis John McGibbney wrote: > > Hi Andy, > > This i

Re: OntModel.read parsing non-suffixed TTL as RDF/XML

2018-03-13 Thread Lewis John McGibbney
Hi Dave, Coming back to this to address some thing I missed before On 2018/03/07 08:57:47, Dave Reynolds wrote: > OntModels use a somewhat older stack of tools (FileManager) which > guesses the language based on the suffix, with a default of RDF/XML, and > then relies on content negotiation t

Best way to produce Ontology from XSD

2012-06-09 Thread lewis john mcgibbney
Goof Afternoon Everyone, I'm in a bit of a puzzle just now w.r.t producing a suitable ontology from a XSD which I have at the link below (all other configuration is in the parent directory) http://www.buildingsmart-tech.org/ifcXML/IFC2x3/FINAL/IFC2X3.xsd Basically the schema describes all sorts

Re: Best way to produce Ontology from XSD

2012-06-11 Thread Lewis John Mcgibbney
Hi Milorad, Apologies for not getting back to you I previously sent my message from my apache email address, which was kindly accepted by the list moderator (Andy) I am now subscribed. The project is part of my ongoing PhD research work. I am interested in modeling data from the domain of sustain

Correct SPARQL query for all information for particular Individual

2012-06-26 Thread Lewis John Mcgibbney
Hi Everyone, Having produced a subset of a rather large ontology I'm now attempting to write a SPARQL query to retrieve all attributes of any given individuals if the name matches. An example of one of my NamedIndividuals is below

Re: Correct SPARQL query for all information for particular Individual

2012-06-26 Thread Lewis John Mcgibbney
Hi Andy, On Tue, Jun 26, 2012 at 6:35 PM, Andy Seaborne wrote: > I don't "do" RDF/XML :-) but this may achieve what you want. That makes two of us then!!! > > PREFIX > DESCRIBE ?x { ?x IFC2X3_subset:hasName IFC2X3_subset:IfcBeam } > > The default for DESCRIBE is the bNode closure. > > If y

Using TDB to Compliment MarkLogic

2012-11-05 Thread Lewis John Mcgibbney
Hi All, Currently I have a stack of XML documents in MarkLogic. They get there via an XProc pipeline. I am currently working to run Apache Any23 on the XML *just* before it get inserted into MarkLogic. I would like to then send the extracted structure e.g. triples, etc to TDB and use this structur

Re: Any23 in Jena

2012-11-05 Thread Lewis John Mcgibbney
Hi Andy, On Mon, Nov 5, 2012 at 9:37 PM, Andy Seaborne wrote: > > "drink our own champagne" Certainly a slight improvement, however today has been long and its too late for me to take this any further... just now :0) > > ARP parses RDF/XML [A] -- RDF/XML in, triples out -- similar to Any23 > RD

Upgrading Jena Dependencies

2013-01-16 Thread Lewis John Mcgibbney
Hi, I've taken on a (rather dated) project which has the following jars physically stored within. -arq.jar -arq-extra.jar -iri.jar -jena.jar -virt_jena.jar -virtjdbc3.jar It should be noted that all compiled classes (inside the jar's) follow the 'com.hpl.blah.blah' package naming mechanism. I'm

Re: Upgrading Jena Dependencies

2013-01-16 Thread Lewis John Mcgibbney
Hi Andy, Dynamite, this is correct. Thank you very much for the heads up. Have a great evening. Best Lewis On Wed, Jan 16, 2013 at 2:43 PM, Andy Seaborne wrote: > On 16/01/13 22:35, Lewis John Mcgibbney wrote: > >> Hi, >> >> I've taken on a (rather dated) project

Getting to know my data in Fuseki

2013-03-05 Thread Lewis John Mcgibbney
Hi, Say I s-put a bunch of OWL files in to my Fuseki server in memory, all goes well. Over time, I may wish to add more, update the files... the usual SOH stuff. Is there any mechanism to actually understand how the underlying data us structured? For example within the control panel, it would be ni

Locating and manipulating results (triples) stream

2013-05-20 Thread Lewis John Mcgibbney
Hi, I need to -- *Lewis*

Locating and manipulating a resource (triples) stream

2013-05-20 Thread Lewis John Mcgibbney
Hi All, Say I submit a DESCRIBE query (via Fuseki for instance) and my query matches one subject which has many resources, all of which is returned as a stream, I would like to locate the code within Jena that actually represents this stream. My reasoning behind this is that I wish to manipulate th

Re: Locating and manipulating a resource (triples) stream

2013-05-20 Thread Lewis John Mcgibbney
-arq/src/main/java/com/hp/hpl/jena/ [1] http://jena.apache.org/documentation/javadoc/arq/index.html?com/hp/hpl/jena/query/ResultSetFormatter.html On Mon, May 20, 2013 at 1:11 PM, Lewis John Mcgibbney < lewis.mcgibb...@gmail.com> wrote: > Hi All, > Say I submit a DESCRIBE query (vi

Using Fuseki API

2013-07-01 Thread Lewis John Mcgibbney
Hi, I am slightly confused as to what API I should be using to do the following. I have triples data (from an Any23 pipeline) in a Java ByteArrayOutputStream. I want to write them in to a standalone Fuseki server which is already running and we can assume will always be running in my data centre. I

Re: Using Fuseki API

2013-07-02 Thread Lewis John Mcgibbney
Hi Andy, Thanks for the feedback. On Tue, Jul 2, 2013 at 3:38 AM, Andy Seaborne wrote: > Hi Lewis - you want to push a bytestream? And you know the content type? > Yeah I have a ByteStream. As I'm working with Any23 we can have different contentTypes... but for now I've turned to the dark side

Backing code for Fuseki *.html

2013-07-23 Thread Lewis John Mcgibbney
Hi All, I'm utilizing the Fuseki source [0] to build an application enabling access to my triples data. Can someone please explain to me how queries are sent to the server please? Looking at the source in sparql.html [1] I am struggling to see what code is called to initiative queries? Can someone

Re: Backing code for Fuseki *.html

2013-07-24 Thread Lewis John Mcgibbney
Thank you very much Andy. As always, thank you. Best Lewis On Wed, Jul 24, 2013 at 12:32 AM, Andy Seaborne wrote: > On 24/07/13 02:36, Lewis John Mcgibbney wrote: > >> Hi All, >> I'm utilizing the Fuseki source [0] to build an application enabling >> access

NPE when submitting query to Jena

2013-08-01 Thread Lewis John Mcgibbney
Hi, For an in house R&D project, I've recently been working with adding some functionality to the Fuseki UI. First I start the server law@lawx:~/Downloads/Lewis/code/essem-fuseki/target/essem-fuseki-0.2.8-SNAPSHOT$ ./fuseki-server --update --mem /susman 14:15:45 INFO Server :: Data

Re: Backing code for Fuseki *.html

2013-08-01 Thread Lewis John Mcgibbney
Hi Andy, On Wed, Jul 24, 2013 at 12:32 AM, Andy Seaborne wrote: > > Also I've never worked with .tpl files before... they look similar but I am >> not familiar... >> > > .tpl files are Velocity files. I decided to hide the technology used by > calling them "tpl" not "vm" in case it changes. > >

Re: Backing code for Fuseki *.html

2013-08-02 Thread Lewis John Mcgibbney
where the sparqlQuery servlet is registered to handle the general > /{dataset}/sparql endpoint. > > in org.apache.jena.fuseki.servlets.SPARQL_QueryDataset at approx line 44 is > the method decideDataset(). That method should be called when fuseki > attempts to match the query with the

Re: NPE when submitting query to Jena

2013-08-04 Thread Lewis John Mcgibbney
Hi Andy, On Fri, Aug 2, 2013 at 3:25 AM, Andy Seaborne wrote: > https://issues.apache.org/**jira/browse/JENA-497 > You've hit the nail right on the head here. > > The issue is that you are using sparql.html -- "General SPARQL Service" on > the f

Re: Backing code for Fuseki *.html

2013-08-04 Thread Lewis John Mcgibbney
sparql endpoint. > > in org.apache.jena.fuseki.servlets.SPARQL_QueryDataset at approx line 44 is > the method decideDataset(). That method should be called when fuseki > attempts to match the query with the dataset you want to query. A > breakpoint in that method should get you i

Re: NPE when submitting query to Jena

2013-08-04 Thread Lewis John Mcgibbney
Quick follow up... I moved my code to the .tpl file, selected the dataset I wished to use... and it all works swimmingly (HA HA). Seriously though, all seems to be good and I am getting much better results. Thanks On Sun, Aug 4, 2013 at 6:25 PM, Lewis John Mcgibbney < lewis.mcgibb...@gmail.

Pinpointing Fuseki results stream in Eclipse

2013-08-04 Thread Lewis John Mcgibbney
Hi, I've been jumping in and around jena-fuseki in Eclipse; getting to know it a 'bit' better. Recent feedback has really helped me to move on with this. I've found myself in a scenario where I need to: * submit queries to an in memory dataset in Fuseki and get a results stream * manipulate the res

Re: Pinpointing Fuseki results stream in Eclipse

2013-08-04 Thread Lewis John Mcgibbney
I eventually I find ServletOutputStream out = action.response.getOutputStream() ; I am hoping that this out object is the one I am after. It would be nice if it was :0) Lewis On Sun, Aug 4, 2013 at 8:17 PM, Lewis John Mcgibbney < lewis.mcgibb...@gmail.com> wrote: > Hi, > I've b

Obtaining only object's from Model

2013-08-20 Thread Lewis John Mcgibbney
Hi All, I get a results stream from Fuseki as follows SPARQL_Rresult.getModel() for clarity, then I do model.toString() the results stream looks like this http://www.gilmorekramer.com/more_info/hytrol_ta_conveyor/hytrol_ta_conveyor.shtml. Data type propoerty associations are made in accordance w

Re: Obtaining only object's from Model

2013-08-20 Thread Lewis John Mcgibbney
Hi Joshua, Thanks for reply On Tue, Aug 20, 2013 at 6:40 PM, Joshua TAYLOR wrote: > > It's sort of surprising to me that you don't seem to care about what > subjects those properties and values are attached to, but at any rate, > if that's really what you want to do, then > This is because I kn

Accessing Fuseki server outside local network.

2013-08-26 Thread Lewis John Mcgibbney
Hi All, Ideally, I would like to run Fuseki inside Tomcat (I am therefore monitoring JENA-201 and also offering to put time into getting HTML pages supported in there) so that I can access my web app outside of local network. However this made me think that it would be strange if this were not alre

Re: Accessing Fuseki server outside local network.

2013-08-26 Thread Lewis John Mcgibbney
blems accessing from some (but not all clients) then > this would be the next thing to investigate. > > Hope this helps, apologies for being low on specifics but firewall > configuration utilities vary widely between OS and even more so when you > get to the network router/switch/hub

Re: Accessing Fuseki server outside local network.

2013-08-27 Thread Lewis John Mcgibbney
> > > You can start it on a different port using --port > > Andy > > On 27/08/13 00:15, Lewis John Mcgibbney wrote: >> >> Hi Rob, >> Thank you so much for this. Great. >> Best >> Lewis >> >> >> On Mon, Aug 26, 2013 at 3:30 PM, Rob Ves