Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-1196

jena.graph.Node.getLocalName() bad output

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • Jena 3.0.1
    • None
    • Jena
    • Ubuntu 14.04 LTS

    • Patch

    Description

      Hi,

      I'm currently using Jena to extract data from DBpedia dumps. In my process, i need to extract the URI of a DBpedia resource URL. I'm using a Triple(jena.graph.Triple) to fetch the data. But when i use the Node.getLocalName() on an URL like http://dbpedia.org/resource/World_War_II/London I get London which is false.

      To avoid this issue, I propose to implement a new method :
      String Node.getLocalName(String namespace)

      It allows the user to specify the namespace to have a better extraction of the URI. If such a method exists already, I'm interested in knowing its name.

      Hope it helps.

      Attachments

        Activity

          People

            andy Andy Seaborne
            Pokiros Jacques Fize
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified