>I can't tell without more information, ideally something that can be run and 
>also a stacktrace.

A runnable example will take some work. I can give you a stack trace easily 
enough:

-----
com.hp.hpl.jena.shared.BadURIException: Only well-formed absolute URIrefs can 
be included in RDF/XML output: <> Code: 57/REQUIRED_COMPONENT_MISSING in 
SCHEME: A component that is required by the scheme is missing.
        at 
com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.checkURI(BaseXMLWriter.java:820)
        at 
com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.relativize(BaseXMLWriter.java:797)
        at com.hp.hpl.jena.xmloutput.impl.Basic.writeResourceId(Basic.java:144)
        at 
com.hp.hpl.jena.xmloutput.impl.Basic.writeDescriptionHeader(Basic.java:92)
        at 
com.hp.hpl.jena.xmloutput.impl.Basic.writeRDFStatements(Basic.java:84)
        at 
com.hp.hpl.jena.xmloutput.impl.Basic.writeRDFStatements(Basic.java:74)
        at com.hp.hpl.jena.xmloutput.impl.Basic.writeBody(Basic.java:48)
        at 
com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.writeXMLBody(BaseXMLWriter.java:492)
        at 
com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.write(BaseXMLWriter.java:464)
        at 
com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.write(BaseXMLWriter.java:450)
        at 
org.apache.jena.riot.adapters.AdapterRDFWriter.write(AdapterRDFWriter.java:52)
        at org.apache.jena.riot.RDFDataMgr.write$(RDFDataMgr.java:1226)
        at org.apache.jena.riot.RDFDataMgr.write(RDFDataMgr.java:1004)
        at 
org.apache.jena.web.DatasetGraphAccessorHTTP$1.writeTo(DatasetGraphAccessorHTTP.java:230)
        at org.apache.http.entity.EntityTemplate.writeTo(EntityTemplate.java:72)
        at 
org.apache.http.entity.HttpEntityWrapper.writeTo(HttpEntityWrapper.java:98)
        at 
org.apache.http.impl.client.EntityEnclosingRequestWrapper$EntityWrapper.writeTo(EntityEnclosingRequestWrapper.java:108)
        at 
org.apache.http.impl.entity.EntitySerializer.serialize(EntitySerializer.java:122)
        at 
org.apache.http.impl.AbstractHttpClientConnection.sendRequestEntity(AbstractHttpClientConnection.java:271)
        at 
org.apache.http.impl.conn.ManagedClientConnectionImpl.sendRequestEntity(ManagedClientConnectionImpl.java:197)
        at 
org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:257)
        at 
org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
        at 
org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:717)
        at 
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:522)
        at 
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
        at 
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
        at org.apache.jena.riot.web.HttpOp.exec(HttpOp.java:1011)
        at org.apache.jena.riot.web.HttpOp.execHttpPut(HttpOp.java:894)
        at 
org.apache.jena.web.DatasetGraphAccessorHTTP.doPut(DatasetGraphAccessorHTTP.java:156)
        at 
org.apache.jena.web.DatasetGraphAccessorHTTP.httpPut(DatasetGraphAccessorHTTP.java:151)
        at org.apache.jena.web.DatasetAdapter.putModel(DatasetAdapter.java:70)
----

>but it's to do with the model passed into putModel so try writing the model as 
>RDF/XML and as N-triples.

I'll try to do that.

>This:
>[, http://www.w3.org/2002/07/owl#imports, http://anchor/OntS]
>looks like the subject is the URI string ""

That's what it looks like to me too. My question is whether that is evidence 
for some misbehavior, or whether "" is expected in some cases. What is the 
expected subject for statements about imports?

>Version?

jena-core (etc.) 2.11, jena-tdb 0.10.1. jena-fuseki 1.0.1.

Dave

Reply via email to