Wrong URL: It will be something like
http://foobar:3030/myDatasetName/data
which is the service endpoint for the Graph Store protocol by default.
(It needs a config file to change it - the UI puts it there
automatically) where the query one is
http://foobar:3030/myDatasetName/query and the SPARQL Update one is
http://foobar:3030/myDatasetName/update.
"myDatasetName" is whatever you you decided to call it.
((
What you have actually done is POSTed to the web pages serving part of
the UI at index.html. It just returns the web page. if anything POSTs
to an HTML page, the content is thrown away (AFAIK true for all webservers).
))
Andy
On 18/08/15 09:17, Andy Doddington wrote:
OK, I’ve created the model, which I can successfully print out using
'model.write(System.out, "RDF/XML-ABBREV”);'
However, when I use your code below, and do an acc.put(model) I find that there
is nothing on the server, even though
no errors are indicated.
The URL that I am using for the createHTTP request is the URL of my Fuseki server:
"http://foobar:3030”, which I
am inspecting using the built in web-based browser.
At the risk of stretching your patience, can you explain what I’m doing wrong?
Given that there are no errors, I would
have expected the model to appear somewhere or other :-/ If I specify an
invalid URL (e.g. incorrect port) then
I get an error, which seems to indicate that the code is actually talking to
the server.
Thanks,
Andy D.
————————————————
On 17 Aug 2015, at 20:19, Andy Seaborne <a...@apache.org> wrote:
DatasetAccessor
This is the API to the SPARQL Graph Store Protocol.
Model model = ...
DatasetAccessor acc = DatasetAccessorFactory.createHTTP
("http://.../datasets/data") ;
acc.add(model) ; // adds to existign data, if any.
or
acc.putModel(model) -- which overwrites existing data
On 17/08/15 20:11, aj...@virginia.edu wrote:
There may be a better answer for this, but at the very least, you can serialize
your triples/quads and use SPARQL Update to send them to your Fuseki instance.
---
A. Soroka
The University of Virginia Library
On Aug 17, 2015, at 3:08 PM, Andy Doddington <andy.dodding...@gmail.com> wrote:
On 17 Aug 2015, at 19:50, Andy Doddington <andy.dodding...@googlemail.com>
wrote:
Hoping the subject makes my query clear - since I am a total newbie in this
area.
I have created a tiny model, using ModelFactory.createDefaultModel() to create
my initially empty model,
which I then populate manually.
So, having done this, is there any way that I can persist this to a Fuseki
database running on a remote server?
Thanks for any help,
Andy D