Bug #4814

Bug #652: SKOS roundtripping - drops Broad Term and Related Term

SKOS ignore <broader> tag for the top-level term in a hierarchy

Added by David Juhasz about 9 years ago. Updated about 9 years ago.

Status:VerifiedStart date:03/19/2013
Priority:MediumDue date:
Assignee:José Raddaoui Marín% Done:

100%

Category:Taxonomy / Term
Target version:Release 1.4.0
Google Code Legacy ID: Tested version:
Sponsored:No Requires documentation:

Description

When exporting a SKOS hierarchy, don't include a <broader> term for the selected term, as only the descendents of the selected term are exported. This effectively makes the selected term the top-level term in the exported thesauri.

On import, ignore any <broader> tags that link to a Concept that is not explicitly defined (as a separate <Concept>) in the import file.

However, when using the “Import SKOS” link for term “foo”, any Concepts in the import file that have no valid <broader> (including <broader> tags with no matching <Concept>) should be made children of the selected term “foo”.

i.e. Starting with the following source thesauri:

Birds
|-Waterfowl
| |-Ducks
| |-Geese
| |-Swans
|-Penguins
|-Raptors
  |-Hawks
  | |-Red-tailed hawk
  | |-Northern goshawk 
  |-Eagles
  | |-Bald eagle
  |-Falcons

If export is done at the “Raptor” level, then Raptors should have no <broader> term in the exported SKOS XML file.

If the user then selects the “Birds of prey” term in the target system, and clicks the “Import” button and imports the SKOS XML file created above, the final thesauri should be (assuming there are no existing children of “Birds of prey” existent):

Birds of Prey
|-Raptors
  |-Hawks
  | |-Red-tailed hawk
  | |-Northern goshawk 
  |-Eagles
  | |-Bald eagle
  |-Falcons

History

#1 Updated by David Juhasz about 9 years ago

  • Description updated (diff)

#2 Updated by David Juhasz about 9 years ago

  • Subject changed from SKOS ignore <broader> tag for the top-level term to SKOS ignore <broader> tag for the top-level term in a hierarchy

#3 Updated by José Raddaoui Marín about 9 years ago

  • Status changed from New to QA/Review
  • % Done changed from 0 to 100

Applied in changeset atom|commit:b7b8701db9d5cc7ea973243525ae3ea2d9f4af83.

#4 Updated by Jessica Bushey about 9 years ago

  • Status changed from QA/Review to Verified

Create top-level term: Alberta.
Created use for term: Western Canada
Create narrow term: Edmonton

Export SKOS.
Delete Alberta term and descendent.

Import SKOS.
Everything imports correctly.

Also available in: Atom PDF