nicholasdelrio / visko

Visualization Knowledge Project
http://openvisko.org/
9 stars 14 forks source link

OWLS API (http://on.cs.unibas.ch/owls-api/) Bug? #7

Closed nicholasdelrio closed 12 years ago

nicholasdelrio commented 12 years ago

When adding the visko properties (viskoS:supportedBy and viskoS:implementsOperator) onto an owls:Service instance, the OWLS api truncates the referenced objects.

For example, when trying to state that some owls:Service is "supportedBy" some toolkit such as NCL, I would expect the resultant rdf/xml to look like:

but using the owls API from http://on.cs.unibas.ch/owls-api/, I get: JENA then isn't able to resolve "ncl.owl#ncl." This only happens if the "xml:base" of the owls:Service rdf shares the same prefix as the object referenced by the visko properties. This must be some attempt to prevent having to use the full URI and thus saving some space, but it breaks visko code. I was therefore hacking it and making up some fake URI for the service's "xml:base" and then adding code that adjusts the uri to the correct one when referencing it -- a temporary solution :(
nicholasdelrio commented 12 years ago

implemented a more permanent fix. I append the correct prefix on the weird URIs