You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2014/04/15 21:58:16 UTC

[jira] [Closed] (JENA-676) Namespace is not recognized

     [ https://issues.apache.org/jira/browse/JENA-676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Seaborne closed JENA-676.
------------------------------

    Resolution: Not a Problem

> 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)