Uploaded image for project: 'VIVO (LEGACY)'
  1. VIVO (LEGACY)
  2. VIVO-1517

Jenatools expects package names instead of namespaces

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: v1.10
    • Component/s: vivo-jenatools
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      6

      Description

      There is a bug that causes jenatools to appear to run successfully, but actually nothing is performed.

      To reproduce:

      1. Start a fresh VIVO 1.9.3
      2. Load with https://github.com/vivo-project/sample-data
      3. Use the provided 1.9.3 example.applicationSetup.n3 with jenatools to export the content
      4. Start a fresh 1.10
      5. Use the provided 1.10 example.applicationSetup.n3 with jenatools to import the content
      6. Nothing happens

       

      After investigation, the behavior is due to the fact that there are some `if` checks that are looking for types of the form:
      ```
      java:edu.cornell.mannlib.vitro.webapp.triplesource.impl.sdb.ContentTripleSourceSDB
      ```
      https://github.com/vivo-project/jenatools/blame/master/jena3tools/src/main/java/org/vivoweb/tools/ApplicationStores.java#L86

      However, based on the following update to `applicationSetup.n3`, the form was changed in Jan 2018 to:
      ```
      java:edu.cornell.mannlib.vitro.webapp#triplesource.impl.sdb.ContentTripleSourceSDB
      ```
      https://github.com/vivo-project/VIVO/commit/71dfb305307f052010b6d2580b52d8c534927fa2#diff-69f763958745df7a6600e5b4fe060cf7R93

      Notice the change in the above type names from including a `.` to a `#`.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              awoods Andrew Woods
              Reporter:
              awoods Andrew Woods
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: