[
https://issues.apache.org/jira/browse/JENA-676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13970658#comment-13970658
]
Andre Wallat commented on JENA-676:
-----------------------------------
Sorry for all the fuzz!
I checked my code again and found out that the project which is using my lib to
handle RDF-documents, did not use the latest libraries from Jena. It was using
jena-arq: 2.9.3
jena-core: 2.7.3
jena-iri: 0.9.3
where there actually seemed to be a namespace problem. With the latest libs
this bug does not occur anymore!
Thanks a lot for the help and sorry for any inconveniences!!! Next time I will
check more thoroughly and provide better examples.
> Namespace is not recognized
> ---------------------------
>
> Key: JENA-676
> URL: https://issues.apache.org/jira/browse/JENA-676
> Project: Apache Jena
> Issue Type: Question
> Affects Versions: Jena 2.11.1
> Reporter: Andre Wallat
> Priority: Minor
>
> I found an issue when accessing a property of an RDF-document. I wanted to
> read a property called "gn:successor". So the normal way is to get the
> namespace of "gn" (which is "http://www.geonames.org/ontology") and create a
> property object, which I use then to receive the property as a statement.
> {{String nsURI = res.getModel().getNsPrefixURI("gn");}}
> {{Property prop = res.getModel().createProperty(nsURI + "successor");}}
> {{Statement stmt = res.getProperty(prop);}}
> For some reason this is not working for a specific document. I checked all
> the available Namespaces and only the "gn" is missing and I don't know why.
> Instead I can access the Propery with
> "http://www.geonames.org/ontologysuccessor" where the # is missing.
> Could anyone please verify this?
> The document to check is:
> http://iqvoc-gazetteer.innoq.com/de/concepts/GEMEINDE1510100000.rdf
--
This message was sent by Atlassian JIRA
(v6.2#6252)