> Is it possible to get prefix mapping from remote graph in Jena?
I think there is some confusion over a "remote" graph here.
With the standard SPARQL protocols, you can either query a remote
endpoint or fetch a remote graph - SPARQL Graph Store Protocol (and
dataset FWIW).
DatasetAccessor is the graph store protocol engine. It transfers graph
by syntax. Whether the prefixes are available depends on what the
remote end sends.
If it sends Turtle, with the prefixes then parsing that will cause the
prefixes to be set, if it's N-triples, no prefixes.
Any thing else is outside the standards so is not going to work against
an arbitrary remote data source.
Prefixes/namespaces ("namespaces" is XML terminology) in RDF are just a
syntactic convenience and the standard protocols don't make them
first-class items.
Andy