Book a Demo

Author Topic: Import an RDF/OWL file with DTD  (Read 3853 times)

aloeffen

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Import an RDF/OWL file with DTD
« on: August 22, 2013, 10:15:08 pm »
Dear EA people,

I'd like to import an RDF/OWL file, which referenced a DTD:

Code: [Select]
<?xml version="1.0"?>
<!DOCTYPE rdf:RDF [
  <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
]>
<rdf:RDF
   ...
</rdf:RDF>  

The DTD itself is omitted, but the entity declarations are in the subset between [...]. This is a rather common way to shorten the namespace references.
It seems EA doesn't allow this. I get:

Code: [Select]
The element rdf:RDF is used but not declared [...]
Any way around this? I think the XML parser should support this kind of use of declaration subsets.

arjan