tinkerpop/rexster — Issue #175: REST prefixes on read-only SailGraph
Author: i000
Created: 2011-10-19 16:11:49+00:00
State: open

if a sail graph is specified as read-only in rexster.xml

the following REST url:

http://127.0.0.1:8182/graphs/intactsail/prefixes

causes:

[ERROR] PrefixResource - java.lang.ClassCastException: com.tinkerpop.blueprints.pgm.impls.readonly.ReadOnlyGraph cannot be cast to com.tinkerpop.blueprints.pgm.impls.sail.SailGraph

if not read only, query works:

{"version":"0.7-SNAPSHOT","results":[{"rdfs":"http:\/\/www.w3.org\/2000\/01\/rdf-schema#"},{"foaf":"http:\/\/xmlns.com\/foaf\/0.1\/"},{"bfg":"http:\/\/bfg.org\/"},{"xsd":"http:\/\/www.w3.org\/2001\/XMLSchema#"},{"owl":"http:\/\/www.w3.org\/2002\/07\/owl#"},{"rdf":"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#"}],"queryTime":0.40162}