Hi,
sure:
<?xml version="1.0"?>
<!DOCTYPE rdf:RDF [
<!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >
<!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" >
<!ENTITY owl "http://www.w3.org/2002/07/owl#" >
<!ENTITY ont "http://example.com/myontology#" >
]>
<rdf:RDF
xmlns:owl ="&owl;"
xmlns:rdf ="&rdf;"
xmlns:rdfs="&rdfs;"
xmlns ="&ont;"
xml:base ="&ont;"
xmlns:ont ="&ont;"
>
<owl:Class rdf:ID="ClassͰ">
</owl:Class>
</rdf:RDF>
Code:
Logger.getRootLogger().setLevel(org.apache.log4j.Level.INFO);
Logger.getRootLogger().addAppender(new ConsoleAppender(new SimpleLayout(),
ConsoleAppender.SYSTEM_ERR));
final OntModel model =
ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM_MINI_RULE_INF);
model.read("file:///home/phil/test_minimal.xml", "RDF/XML");
Classpath:
mysql-connector-java-5.1.36/mysql-connector-java-5.1.36-bin.jar
owlapi-osgidistribution-4.1.0.jar
apache-jena-2.7.4/lib/commons-codec-1.5.jar
apache-jena-2.7.4/lib/httpclient-4.1.2.jar
apache-jena-2.7.4/lib/httpcore-4.1.3.jar
apache-jena-2.7.4/lib/jcl-over-slf4j-1.6.4.jar
apache-jena-2.7.4/lib/jena-arq-2.9.4.jar
apache-jena-2.7.4/lib/jena-core-2.7.4.jar
apache-jena-2.7.4/lib/jena-iri-0.9.4.jar
apache-jena-2.7.4/lib/jena-tdb-0.9.4.jar
apache-jena-2.7.4/lib/xercesImpl-2.10.0.jar
apache-jena-2.7.4/lib/xml-apis-1.4.01.jar
apache-jena-2.7.4/lib/log4j-1.2.16.jar
apache-jena-2.7.4/lib/slf4j-api-1.6.4.jar
apache-jena-2.7.4/lib/slf4j-log4j12-1.6.4.jar
Kind regards
Philipp
On Mon, 16 Nov 2015 13:47:11 +0000 UTC,
Andy Seaborne <[email protected]> wrote:
> On 16/11/15 11:33, Philipp wrote:
> >Hi,
> >
> >it seems to me that Jena gives a spurious warning ("Not an XML Name:"), when
> >the Ͱ character (Ͱ) - and presumably other exotic characters - is used
> >in XML names, for example rdf:IDs.
> >According to the XML definition it's even a valid NameStartChar:
> >http://www.w3.org/TR/xml/#NT-NameStartChar
> >Also, it's not restricted in the rdf-id production rule:
> >http://www.w3.org/TR/rdf-syntax-grammar/#rdf-id
> >
> >If this seems like a bug to you, please forward this to the dev list.
> >
> >Regards
> >Philipp
> >
>
> Hi Philipp,
>
> Do you have a complete minimal example for a test case? i.e. a short RDF/XML
> that illustrates the issue, and how you are reading the file with Jena.
>
> Also, which version of Jena are you using?
>
> Andy
>