Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Cypher or SPARQL (or both) for Neo4j as my RDF Store
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
ASrivastav  
View profile  
 More options Sep 10 2012, 5:45 pm
From: ASrivastav <asrivas...@identropy.com>
Date: Mon, 10 Sep 2012 14:45:40 -0700 (PDT)
Local: Mon, Sep 10 2012 5:45 pm
Subject: Cypher or SPARQL (or both) for Neo4j as my RDF Store

I have a couple of questions:

1.  We have modeled/represented our Neo4j data as RDF triples.  In
contrast to Cypher, I know that SPARQL is designed for RDF stores.  Is that
enough of an argument to choose SPARQL over Cypher as my go-to query
language for my database?  Or can Cypher accomplish everything SPARQL can,
just not with as much dexterity and/or ease?  I assume SPARQL cannot be
used with a non-RDF store, so it would not work the other way around.

2.  I read a FAQ blog on Neo4j which stated that "You can use Neo4j as an
RDF store, and then run SPARQL queries against it, by using TinkerPop".  Does
that mean that SPARQL can only be used on the Embedded Neo4j only, since
other Tinkerpop products (i.e. Blueprints) require the embedded server?  By
the way, we are using Neo4j Server (i.e. REST APIs), not the Embedded
Server.

Thanks!

ASrivastav


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marko Rodriguez  
View profile  
 More options Sep 10 2012, 5:48 pm
From: Marko Rodriguez <okramma...@gmail.com>
Date: Mon, 10 Sep 2012 15:47:55 -0600
Local: Mon, Sep 10 2012 5:47 pm
Subject: Re: [Neo4j] Cypher or SPARQL (or both) for Neo4j as my RDF Store

Hi,

> 2.  I read a FAQ blog on Neo4j which stated that "You can use Neo4j as an RDF store, and then run SPARQL queries against it, by using TinkerPop".  Does that mean that SPARQL can only be used on the Embedded Neo4j only, since other Tinkerpop products (i.e. Blueprints) require the embedded server?  By the way, we are using Neo4j Server (i.e. REST APIs), not the Embedded Server.

Neo4j Server simply wraps Neo4j embedded. As such, you can use GraphSail over Neo4j and thus achieve SPARQL over Neo4j.

        https://github.com/tinkerpop/blueprints/wiki/Sail-Ouplementation

HTH,
Marko.

http://thinkaurelius.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ASrivastav  
View profile  
 More options Sep 10 2012, 6:32 pm
From: ASrivastav <asrivas...@identropy.com>
Date: Mon, 10 Sep 2012 15:32:36 -0700 (PDT)
Local: Mon, Sep 10 2012 6:32 pm
Subject: Re: [Neo4j] Cypher or SPARQL (or both) for Neo4j as my RDF Store

I appreciate the quick response Marko!

Any thoughts/opinions on using SPARQL over Cypher?  My thought is that
since Cypher is a proprietary Neo4j query language, I would want to use
Cypher over SPARQL.  But if it's smarter to use SPARQL over Cypher for a
RDF store, then I would rather use SPARQL.

Thanks.

ASrivastav


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Neubauer  
View profile  
 More options Sep 10 2012, 6:42 pm
From: Peter Neubauer <peter.neuba...@neotechnology.com>
Date: Tue, 11 Sep 2012 00:41:56 +0200
Local: Mon, Sep 10 2012 6:41 pm
Subject: Re: [Neo4j] Cypher or SPARQL (or both) for Neo4j as my RDF Store
Hi there,
yes, Cypher is closer to the metal. OTOH, RDF is more established if
you deal with Linked Data. Not really sure what you want. How much RDF
querying do you need? Can you express your queries in Cypher? In that
case, I would choose the latter.

Cheers,

/peter neubauer

Neo4j 1.8.RC1 "Vindeln Vy" -
http://blog.neo4j.org/2012/09/neo4j-18rc1-really-careful-ftw.html

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

Wanna learn something new? Come to @graphconnect.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rickard Öberg  
View profile  
 More options Sep 10 2012, 9:14 pm
From: Rickard Öberg <rickard.ob...@neotechnology.com>
Date: Tue, 11 Sep 2012 09:14:25 +0800
Local: Mon, Sep 10 2012 9:14 pm
Subject: Re: [Neo4j] Cypher or SPARQL (or both) for Neo4j as my RDF Store
On 9/11/12 06:32 , ASrivastav wrote:

> I appreciate the quick response Marko!

> Any thoughts/opinions on using SPARQL over Cypher?  My thought is that
> since Cypher is a proprietary Neo4j query language, I would want to use
> Cypher over SPARQL.  But if it's smarter to use SPARQL over Cypher for a
> RDF store, then I would rather use SPARQL.

As with any language selection it is a lot about what you are trying to
express. SPARQL is more oriented towards full database scanning and
matching, whereas Cypher generally wants you to know of a starting point
and work from there. I think this will change over time though, as the
indexing in Neo improves, so that you basically don't have to think
about "start points" anymore. SPARQL is also read-only by design, so if
you want mutating operations Cypher is the only choice.

/Rickard

--
Rickard berg
Developer
Neo Technology
Twitter: @rickardoberg, Skype: rickardoberg


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ASrivastav  
View profile  
 More options Sep 11 2012, 1:10 am
From: ASrivastav <asrivas...@identropy.com>
Date: Mon, 10 Sep 2012 22:10:03 -0700 (PDT)
Local: Tues, Sep 11 2012 1:10 am
Subject: Re: [Neo4j] Cypher or SPARQL (or both) for Neo4j as my RDF Store

Thanks for the helpful responses, Peter and Rickard.

To be honest, we want our data stored in RDF format but we don't
necessarily need to retrieve the data via RDF querying.  Also, we
definitely need to execute CRUD-type operations, so if SPARQL is read-only
by design, then that eliminates itself.

I feel much better about the decision to go with a REST API + Cypher
solution for our Neo4j Server.  It provides maximum security plus I can use
Cypher to query, insert, update and delete data in my graph.

I appreciate all of the help in making this decision.  Thanks.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Neubauer  
View profile  
 More options Sep 11 2012, 1:30 am
From: Peter Neubauer <peter.neuba...@neotechnology.com>
Date: Tue, 11 Sep 2012 07:30:14 +0200
Local: Tues, Sep 11 2012 1:30 am
Subject: Re: [Neo4j] Cypher or SPARQL (or both) for Neo4j as my RDF Store

Hi there,
yes, Cypher is closer to the metal. OTOH, RDF is more established if you
deal with Linked Data. Not really sure what you want. How much RDF querying
do you need? Can you express your queries in

Cheers,

/peter neubauer

Neo4j 1.8.RC1 "Vindeln Vy" -
http://blog.neo4j.org/2012/09/neo4j-18rc1-really-careful-ftw.html

G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer

Wanna learn something new? Come to @graphconnect.

On Tue, Sep 11, 2012 at 12:32 AM, ASrivastav <asrivas...@identropy.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Venkat Krishnamurthy  
View profile  
 More options Oct 31 2012, 6:09 pm
From: Venkat Krishnamurthy <nivik...@gmail.com>
Date: Wed, 31 Oct 2012 15:09:07 -0700 (PDT)
Local: Wed, Oct 31 2012 6:09 pm
Subject: Re: [Neo4j] Cypher or SPARQL (or both) for Neo4j as my RDF Store

This last statement is totally not true. SPARQL 1.1 has a fully defined
update API that works like SQL DDL/DML that allows inline updates on live
graphs.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rickard Öberg  
View profile  
 More options Oct 31 2012, 10:03 pm
From: Rickard Öberg <rickard.ob...@neotechnology.com>
Date: Thu, 01 Nov 2012 10:03:01 +0800
Local: Wed, Oct 31 2012 10:03 pm
Subject: Re: [Neo4j] Cypher or SPARQL (or both) for Neo4j as my RDF Store
On 11/1/12 06:09 , Venkat Krishnamurthy wrote:

> This last statement is totally not true. SPARQL 1.1 has a fully defined
> update API that works like SQL DDL/DML that allows inline updates on
> live graphs.

The SPARQL Query language, which is what Neo4j supports, is read-only.
The SPARQL 1.1 Update language is separate from the former, and adds
updates, but AFAIK there are no plugins in Neo4j to support it (the
SPARQLPlugin doesn't anyway).

/Rickard

--
Rickard berg
Developer
Neo Technology
Twitter: @rickardoberg, Skype: rickardoberg


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Venkat Krishnamurthy  
View profile  
 More options Nov 1 2012, 10:37 am
From: Venkat Krishnamurthy <nivik...@gmail.com>
Date: Thu, 1 Nov 2012 07:37:27 -0700 (PDT)
Local: Thurs, Nov 1 2012 10:37 am
Subject: Re: [Neo4j] Cypher or SPARQL (or both) for Neo4j as my RDF Store

Agreed, but your statement 'SPARQL is also read-only by design' doesnt
provide either the context or clarification that it's specific to Neo4j's
current capabilities, and not the standard itself.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »