Stardog Sparql Interface

1 view
Skip to first unread message

Asher Baig

unread,
Jul 23, 2013, 9:38:11 AM7/23/13
to sta...@clarkparsia.com
Hi,

Can some one help me how to access sparql endpoint.
As my Database names is myDB ?

Also i want to add specific data into specific graph ? how it is possible ?
For example 

stardog data -g <fub_byrn> add myDB file.ttl
it say system cannot find the file specified

Please guide me about process ?

Mike Grove

unread,
Jul 23, 2013, 9:53:44 AM7/23/13
to stardog
On Tue, Jul 23, 2013 at 9:38 AM, Asher Baig <ashe...@gmail.com> wrote:
Hi,

Can some one help me how to access sparql endpoint.

If you've run the server on the default port, the SPARQL endpoint is accessible at http://localhost:5822/myDB/query
 
As my Database names is myDB ?

Also i want to add specific data into specific graph ? how it is possible ?
For example 

stardog data -g <fub_byrn> add myDB file.ttl

This syntax is correct.
 
it say system cannot find the file specified

If Stardog can't find the file, it's likely that you have a typo in the filename.

Cheers,

Mike
 

Please guide me about process ?

--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en
 
 

Asher Baig

unread,
Jul 23, 2013, 10:08:12 AM7/23/13
to sta...@clarkparsia.com
Thanks for quick reply/

i am unable to access endpoint.
It simple download file named as  query.When i click on file it has information given below

Also i check there is no typo in the file name.I added same file without graph it work.
but i want to add dataset in specific graph.
for example 

I want to add file.ttl in graph fub_byrn .
how can i add them ?









_:node1805nu9r6x14 <http://www.w3.org/ns/sparql-service-description#defaultGraph> _:node1805nu9r6x15 .



Mike Grove

unread,
Jul 23, 2013, 10:15:19 AM7/23/13
to stardog
On Tue, Jul 23, 2013 at 10:08 AM, Asher Baig <ashe...@gmail.com> wrote:
Thanks for quick reply/

i am unable to access endpoint.
It simple download file named as  query.When i click on file it has information given below

That's the SPARQL Service Description.  You didnt provide any input to the query endpoint, so that's the default behavior.

If you're expecting a web page to type a query into, you won't get one.  Currently, that's what the CLI or the programmatic APIs are for.  In Stardog 2.0 there will be a web-based application similar to the Sesame workbench from which you can execute queries.
 

Also i check there is no typo in the file name.I added same file without graph it work.
but i want to add dataset in specific graph.
for example 

I want to add file.ttl in graph fub_byrn .
how can i add them ?


I've told you what the syntax is, which is also available from the CLI help.  If you would like to provide the *exact* input you're giving to the Stardog CLI and the *exact* output which you believe to be incorrect, I can provide more specific feedback.  Otherwise I'm just guessing at what you're doing and that's not very useful.

Cheers,

Mike
 
--
Reply all
Reply to author
Forward
0 new messages