Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transform "Schlagwortketten" (subject chains) #70

Closed
dr0i opened this issue Oct 10, 2014 · 9 comments
Closed

Transform "Schlagwortketten" (subject chains) #70

dr0i opened this issue Oct 10, 2014 · 9 comments
Assignees
Projects

Comments

@dr0i
Copy link
Member

dr0i commented Oct 10, 2014

No description provided.

@dr0i dr0i added the working label Oct 10, 2014
@dr0i
Copy link
Member Author

dr0i commented Oct 10, 2014

If the "Schlagwortketten" (beginning without permutations) are provided this data should appear in the "single hit" view of NWBib.
Example of a resource having 2 Schlagwortketten: http://193.30.112.134/F/?func=find-c&ccl_term=IDN%3DBT000003404 (BT000003404).

@dr0i dr0i self-assigned this Oct 10, 2014
@dr0i dr0i added working and removed working labels Oct 10, 2014
@fsteeg
Copy link
Member

fsteeg commented Oct 13, 2014

OK, so here are some details on the subject chains and how I'd imagine to transform them.

It seems the maximim number of subject chains is 10, since they use the 9xx fields. They start at 902 for the first chain and then use steps of five for each other chain, so the second chain would be 907, then 912, etc. See this example for a title with 9 chains:

http://lobid.org/resource?id=BT000006579&format=source

Now thats just the base chains. For each of these chains we can have any number of permutations (these reference the order of the subjects, so we need to preserve that). These are stored in the next field after the base chain (if I understood this correctly). So the permutations for the first chain are stored in 903, for the second in 908, then 913, etc. See this example:

http://lobid.org/resource?id=HT013577568&format=source

Often, the subjects are from the controlled GND vocabulary, but not always. See 'Geschichte 71 v. Chr.-70 v. Chr' in the example above.

So based on all of this, this is what I'd suggest for the transformation:

For each chain, we generate a literal containing all subject labels as comma separated values, plus all permuatations as comma-separated values in parens. So for HT013577568 (secons sample above), this would yield these 6 chains:

  1. Rheinland, Römerzeit, Germanen, Münze, Geschichte 71 v. Chr.-70 v. Chr (23415, 34215, 43215)
  2. Rheinland
  3. Römerzeit, Münzfund, Geschichte 71 v. Chr.-70 v. Chr (2314, 3214)
  4. Rheinlande im engeren Sinn, Römische Zeit, Germanische Völker, Metallgeld, Münzen
  5. Rheinlande im engeren Sinn
  6. Römische Zeit, Fundmünze, Münzschatz

On the triple level, we can use the same predicate for these, which will give us an array in JSON-LD:

<http://lobid.org/resource/HT013577568> <http://purl.org/lobid/lv#subjectChain> "Rheinland, Römerzeit, Germanen, Münze, Geschichte 71 v. Chr.-70 v. Chr (23415, 34215, 43215)".

<http://lobid.org/resource/HT013577568> <http://purl.org/lobid/lv#subjectChain> "Rheinlande im engeren Sinn, Römische Zeit, Germanische Völker, Metallgeld, Münzen".

dr0i added a commit to lobid/lodmill that referenced this issue Oct 14, 2014
@dr0i dr0i assigned acka47 and unassigned dr0i Oct 15, 2014
@dr0i
Copy link
Member Author

dr0i commented Oct 15, 2014

@acka47
Copy link
Contributor

acka47 commented Oct 16, 2014

As subject headings with commas exist (examples here), we shouldn't use commas for seperating the components of a chain of subject terms. I suggest using a pipe ('|') instead.

@acka47
Copy link
Contributor

acka47 commented Oct 16, 2014

Here's the pull reuquest for th lv:subjectChain property: hbz/lobid-vocabs#28. Please review.

fsteeg added a commit to hbz/lobid that referenced this issue Oct 16, 2014
@dr0i
Copy link
Member Author

dr0i commented Oct 16, 2014

TODO: exchange separator , with | in transformation.

@fsteeg
Copy link
Member

fsteeg commented Oct 16, 2014

Display and search for subject chains deployed to staging:

http://test.lobid.org/nwbib/HT017732186
http://test.lobid.org/nwbib/search?subject=Forstmann

dr0i added a commit to lobid/lodmill that referenced this issue Oct 17, 2014
@dr0i dr0i added review and removed ready labels Oct 17, 2014
@fsteeg fsteeg assigned acka47 and unassigned dr0i Oct 22, 2014
@acka47
Copy link
Contributor

acka47 commented Oct 22, 2014

+1

@acka47 acka47 assigned fsteeg and unassigned acka47 Oct 22, 2014
@acka47 acka47 added deploy and removed review labels Oct 22, 2014
@fsteeg
Copy link
Member

fsteeg commented Oct 22, 2014

Deployed to production, closing. See:

http://lobid.org/nwbib/HT017732186
http://lobid.org/nwbib/search?subject=Forstmann

@fsteeg fsteeg closed this as completed Oct 22, 2014
@acka47 acka47 added this to Deploy in lobid board Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

3 participants