cypher - Neo4j SPARQL Plugin on node property -
i've got neo4j 1.9.7 sparql plugin working on (sparql 1.0).
i've imported .nt file database creating corrispondent nodes , relationship. every node has property value name of node. possible sparql query plugin find node particular "value" ?
e.g. node(2) --- value:businessprocess1
my goal query in sparql similar 1 in cypher:
start n=node(*) match (n)-[r]-(x) n.value="http://neo4j.org#businessprocess1" return n,n.value, x, x.value, type(r)
this query gives me output this:
n n.value x x.value type(r) node 2 "http://neo4j.org#businessprocess1" node 5 "http://neo4j.org#applicationprocess2" "http://neo4j.org#run" node 2 "http://neo4j.org#businessprocess1" node 3 "http://neo4j.org#applicationprocess3" "http://neo4j.org#run" node 2 "http://neo4j.org#businessprocess1" node 10 "http://neo4j.org#applicationprocess39" "http://neo4j.org#composed_by" node 2 "http://neo4j.org#businessprocess1" node 5 "http://neo4j.org#applicationprocess2" "http://neo4j.org#composed_by" node 2 "http://neo4j.org#businessprocess1" node 157 "http://neo4j.org#applicationprocess12" "http://neo4j.org#composed_by" node 2 "http://neo4j.org#businessprocess1" node 192 "http://neo4j.org#applicationprocess1" "http://neo4j.org#composed_by" node 2 "http://neo4j.org#businessprocess1" node 45 "http://neo4j.org#applicationprocess7" "http://neo4j.org#composed_by" node 2 "http://neo4j.org#businessprocess1" node 80 "http://neo4j.org#applicationprocess34" "http://neo4j.org#composed_by"
is possible ?
edit: here's output of exploratory query on dataset
[ { "s" : "http://neo4j.org#businessprocess1", "p" : "http://neo4j.org#run", "o" : "http://neo4j.org#applicationprocess3" }, { "s" : "http://neo4j.org#applicationprocess3", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database2" }, { "s" : "http://neo4j.org#businessprocess1", "p" : "http://neo4j.org#run", "o" : "http://neo4j.org#applicationprocess2" }, { "s" : "http://neo4j.org#applicationprocess24", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database235" }, { "s" : "http://neo4j.org#businessprocess41", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess39" }, { "s" : "http://neo4j.org#applicationprocess14", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database851" }, { "s" : "http://neo4j.org#businessprocess45", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess5" }, { "s" : "http://neo4j.org#businessprocess5", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess27" }, { "s" : "http://neo4j.org#applicationprocess36", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database200" }, { "s" : "http://neo4j.org#applicationprocess25", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database261" }, { "s" : "http://neo4j.org#applicationprocess9", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database842" }, { "s" : "http://neo4j.org#applicationprocess2", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database919" }, { "s" : "http://neo4j.org#businessprocess20", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess2" }, { "s" : "http://neo4j.org#applicationprocess38", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database528" }, { "s" : "http://neo4j.org#businessprocess7", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess8" }, { "s" : "http://neo4j.org#applicationprocess9", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database626" }, { "s" : "http://neo4j.org#applicationprocess31", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database825" }, { "s" : "http://neo4j.org#applicationprocess39", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database214" }, { "s" : "http://neo4j.org#applicationprocess2", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database89" }, { "s" : "http://neo4j.org#applicationprocess39", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database138" }, { "s" : "http://neo4j.org#applicationprocess35", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database369" }, { "s" : "http://neo4j.org#applicationprocess35", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database91" }, { "s" : "http://neo4j.org#applicationprocess26", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database85" }, { "s" : "http://neo4j.org#businessprocess9", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess3" }, { "s" : "http://neo4j.org#applicationprocess4", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database513" }, { "s" : "http://neo4j.org#businessprocess3", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess19" }, { "s" : "http://neo4j.org#applicationprocess7", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database903" }, { "s" : "http://neo4j.org#applicationprocess28", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database130" }, { "s" : "http://neo4j.org#businessprocess19", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess39" }, { "s" : "http://neo4j.org#applicationprocess25", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database139" }, { "s" : "http://neo4j.org#businessprocess34", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess14" }, { "s" : "http://neo4j.org#applicationprocess36", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database866" }, { "s" : "http://neo4j.org#businessprocess32", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess20" }, { "s" : "http://neo4j.org#applicationprocess11", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database295" }, { "s" : "http://neo4j.org#businessprocess35", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess21" }, { "s" : "http://neo4j.org#applicationprocess21", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database518" }, { "s" : "http://neo4j.org#applicationprocess19", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database311" }, { "s" : "http://neo4j.org#applicationprocess11", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database784" }, { "s" : "http://neo4j.org#applicationprocess18", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database166" }, { "s" : "http://neo4j.org#applicationprocess16", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database254" }, { "s" : "http://neo4j.org#businessprocess12", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess13" }, { "s" : "http://neo4j.org#applicationprocess25", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database428" }, { "s" : "http://neo4j.org#applicationprocess30", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database18" }, { "s" : "http://neo4j.org#applicationprocess23", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database703" }, { "s" : "http://neo4j.org#applicationprocess38", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database330" }, { "s" : "http://neo4j.org#applicationprocess8", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database238" }, { "s" : "http://neo4j.org#businessprocess36", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess5" }, { "s" : "http://neo4j.org#businessprocess3", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess27" }, { "s" : "http://neo4j.org#businessprocess12", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess7" }, { "s" : "http://neo4j.org#applicationprocess0", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database48" }, { "s" : "http://neo4j.org#applicationprocess26", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database194" }, { "s" : "http://neo4j.org#businessprocess49", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess34" }, { "s" : "http://neo4j.org#businessprocess12", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess30" }, { "s" : "http://neo4j.org#applicationprocess32", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database506" }, { "s" : "http://neo4j.org#applicationprocess26", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database351" }, { "s" : "http://neo4j.org#applicationprocess31", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database818" }, { "s" : "http://neo4j.org#businessprocess48", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess22" }, { "s" : "http://neo4j.org#businessprocess7", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess22" }, { "s" : "http://neo4j.org#businessprocess50", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess11" }, { "s" : "http://neo4j.org#applicationprocess37", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database91" }, { "s" : "http://neo4j.org#applicationprocess15", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database314" }, { "s" : "http://neo4j.org#applicationprocess4", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database849" }, { "s" : "http://neo4j.org#applicationprocess0", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database487" }, { "s" : "http://neo4j.org#businessprocess7", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess14" }, { "s" : "http://neo4j.org#applicationprocess5", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database187" }, { "s" : "http://neo4j.org#applicationprocess34", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database330" }, { "s" : "http://neo4j.org#applicationprocess23", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database131" }, { "s" : "http://neo4j.org#businessprocess43", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess6" }, { "s" : "http://neo4j.org#applicationprocess21", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database86" }, { "s" : "http://neo4j.org#businessprocess37", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess30" }, { "s" : "http://neo4j.org#businessprocess38", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess23" }, { "s" : "http://neo4j.org#applicationprocess11", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database622" }, { "s" : "http://neo4j.org#applicationprocess7", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database9" }, { "s" : "http://neo4j.org#businessprocess30", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess36" }, { "s" : "http://neo4j.org#businessprocess7", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess24" }, { "s" : "http://neo4j.org#businessprocess29", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess38" }, { "s" : "http://neo4j.org#applicationprocess35", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database109" }, { "s" : "http://neo4j.org#applicationprocess38", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database51" }, { "s" : "http://neo4j.org#businessprocess4", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess26" }, { "s" : "http://neo4j.org#applicationprocess16", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database698" }, { "s" : "http://neo4j.org#businessprocess43", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess32" }, { "s" : "http://neo4j.org#applicationprocess17", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database496" }, { "s" : "http://neo4j.org#businessprocess14", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess35" }, { "s" : "http://neo4j.org#businessprocess37", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess21" }, { "s" : "http://neo4j.org#applicationprocess38", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database603" }, { "s" : "http://neo4j.org#applicationprocess18", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database145" }, { "s" : "http://neo4j.org#businessprocess19", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess26" }, { "s" : "http://neo4j.org#applicationprocess16", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database282" }, { "s" : "http://neo4j.org#businessprocess43", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess20" }, { "s" : "http://neo4j.org#businessprocess23", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess18" }, { "s" : "http://neo4j.org#applicationprocess29", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database66" }, { "s" : "http://neo4j.org#applicationprocess28", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database94" }, { "s" : "http://neo4j.org#applicationprocess18", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database848" }, { "s" : "http://neo4j.org#businessprocess21", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess39" }, { "s" : "http://neo4j.org#businessprocess42", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess37" }, { "s" : "http://neo4j.org#applicationprocess37", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database850" }, { "s" : "http://neo4j.org#businessprocess41", "p" : "http://neo4j.org#composed_by", "o" : "http://neo4j.org#applicationprocess31" }, { "s" : "http://neo4j.org#applicationprocess6", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database443" }, { "s" : "http://neo4j.org#applicationprocess20", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database913" }, { "s" : "http://neo4j.org#applicationprocess22", "p" : "http://neo4j.org#run_on", "o" : "http://neo4j.org#database772" } ]
it rather stupid can use directly value ad query this
"query":"prefix bus:<http://neo4j.org#businessprocess> select * {bus:1 ?p ?o}"
Comments
Post a Comment