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

1017 add notations to spatial objects #1020

Merged
merged 3 commits into from
Sep 12, 2019
Merged

Conversation

dr0i
Copy link
Member

@dr0i dr0i commented Sep 10, 2019

See #1017 .

dr0i added 2 commits September 9, 2019 17:41
- create morph map from nwbib-skos-file automatically
- allow notations to be a number greater 99
- use other delimiter than commata (because this is sometimes part of the data)
- update morph to create nice label for wikidata QIds
- update test

See #1017.
@dr0i dr0i requested review from acka47 and fsteeg and removed request for fsteeg September 10, 2019 07:48
@dr0i
Copy link
Member Author

dr0i commented Sep 10, 2019

@acka47 ping to review

@dr0i
Copy link
Member Author

dr0i commented Sep 10, 2019

In #1017 (comment) @acka47 informed that the nwbib-spatial.ttl was updated. Thus, this PR has to be updated.

Every time the file in lobid-vocabs is updated the nwbib-spatial.tsv
has to be also updated. This updating process is automatically done
every time before the geo-nwbib-index is rebuild.

See #1017.
@acka47
Copy link
Contributor

acka47 commented Sep 11, 2019

Looks like a PR from me with lots of automatic formatting edits in the morph. ;-) However, everything is fine: +1

@dr0i dr0i merged commit b62e572 into master Sep 12, 2019
@dr0i dr0i deleted the 1017-addNotationsToSpatialObjects branch September 12, 2019 07:33
@dr0i
Copy link
Member Author

dr0i commented Sep 13, 2019

Looks like a PR from me with lots of automatic formatting edits in the morph. ;-)

Did the formatting in a commit of its own to be able to review the substantial logic.
As the formatting of xml is still a thing to do I opened #1021.

@dr0i
Copy link
Member Author

dr0i commented Sep 13, 2019

Deployed to production.

@dr0i
Copy link
Member Author

dr0i commented Sep 13, 2019

Ah, now I forgot to assign the review for @fsteeg .

@dr0i dr0i requested a review from fsteeg September 13, 2019 08:07
@acka47
Copy link
Contributor

acka47 commented Sep 13, 2019

Did the formatting in a commit of its own to be able to review the substantial logic

Sorry, I didn't notice that. I take my comment back.

@dr0i
Copy link
Member Author

dr0i commented Sep 13, 2019

No problem, for one the formatting is not a part of the issue and for two you reminded me to open a new issue to solve the formatting problem. So, good thing came out of it :)

LOG.info("going to load 'notation' from " + NOTATION_CSV_FN + "...");
String line = null;
try {
lineReader = new BufferedReader(new FileReader(NOTATION_CSV_FN));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In case you didn't know, there's a new-ish way of reading lines that I like since it's very concise. Basic idea:

for (String line : Files.readAllLines(Paths.get(NOTATION_CSV_FN))) {
  String[] nwbibSpatialTsv = line.split("\\|");
  //...
}

May be useful for the next time or something.

@fsteeg
Copy link
Member

fsteeg commented Sep 13, 2019

+1 (I don't see a way to officially approve, maybe because it's closed)

@dr0i dr0i restored the 1017-addNotationsToSpatialObjects branch September 13, 2019 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants