[PyWrapper-devel] Valid response model
Status: Alpha
Brought to you by:
jatorre
From: Roger H. <ro...@td...> - 2006-12-13 22:29:48
|
Hi All, I am looking at what TAPIR output models I could use with PyWrapper. I have developed XML Schemas that will help produce valid RDF instance data for a simple OWL ontology. Here is an example: http://rs.tdwg.org/ontology/voc/xsd/TaxonName/schema.xsd If you open this link in OxygenXML or Spy you can expand all the nodes and create instance documents that look like valid RDF. Here is an example instance document: http://rs.tdwg.org/ontology/voc/xsd/TaxonName/template.xml So the plan would be to use the schema above (or something similar) as the structure in an output model so that a TAPIR response could be a valid semantic web document and a LSID metadata response. A complete LSID authority would need very little code on top of this. The downside is that these schemas are complex because of the number of imports required to support the different namespaces involved. Anyhow. The first step was to check that PyWrapper would parse schemas like the one above so I did this: http://localhost:8080/pywrapper/pywrapper?op=schema&location=http:// rs.tdwg.org/ontology/voc/xsd/TaxonName/schema.xsd on my local machine and got "The models response structure is invalid: Global element reference 'http://rs.tdwg.org/ontology/voc/TaxonName#/rdf:about' missing" I am not sure why I get this as OxygenXML doesn't have a problem with expanding the links and validating the rdf:about attribute so I *think* the schema is OK. The parser is handling the import of TaxonName.xsd OK. Is it a problem with attributes? Is it a bug or a known limitation or an error in my schema? The are also problems with the group element but I can always work round this by just repeating the element. Any ideas on the rdf:about problem would be most welcome. Many thanks, Roger **************************************** Roger Hyam <ro...@td...> Biodiversity Information Standards **************************************** |