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

Create links from values in 700n=96|97 #53

Closed
acka47 opened this issue Aug 19, 2014 · 12 comments
Closed

Create links from values in 700n=96|97 #53

acka47 opened this issue Aug 19, 2014 · 12 comments
Assignees

Comments

@acka47
Copy link
Contributor

acka47 commented Aug 19, 2014

curl http://lobid.org/resource?subject=http%3A%2F%2Fpurl.org%2Flobid%2Fnwbib-spatial%23n
[{"@id":"http://lobid.org/resource?subject=http%3A%2F%2Fpurl.org%2Flobid%2Fnwbib-spatial%23n","http://sindice.com/vocab/search#totalResults":14167}

Example:
<http://lobid.org/resource/HT016176022> <http://purl.org/dc/terms/subject> <http://purl.org/lobid/nwbib-spatial#n> .

Other examples:

This obviously has something to with the notation 97 which works similar to 99 but but indicates a "Kreis" instead of a "Stadt/Ortschaft". Examples:

HT016176022: 700n |a 97 |b Höxter <Kreis>
BT000041593: 700n |a 97 |b Coesfeld (Kreis)

The same goes for notation 96 and Regierungsbezirk. See http://lobid.org/resource?subject=http%3A%2F%2Fpurl.org%2Flobid%2Fnwbib-spatial%23n&name=regierungsbezirk.

Examples:

Desired outcome (for testing purposes)

Examples:

@acka47 acka47 added the bug label Aug 19, 2014
@acka47
Copy link
Contributor Author

acka47 commented Aug 19, 2014

The labels aren't controlled, though. E.g. I find two forms for "Regierungsbezirk Münster:

  • "Münster (Regierungsbezirk)" (BT000086194, BT000123904, BT000072794)
  • "Münster <Westfalen, Bezirk>" (HT003160768, HT013486562)

@acka47
Copy link
Contributor Author

acka47 commented Aug 19, 2014

BTW, there five "Regierungsbezirke" in NRW, see https://de.wikipedia.org/wiki/Regierungsbezirke_in_Nordrhein-Westfalen.

@acka47
Copy link
Contributor Author

acka47 commented Aug 19, 2014

And there are 31 "Kreise", see https://de.wikipedia.org/wiki/Liste_der_Kreise_und_kreisfreien_St%C3%A4dte_in_Nordrhein-Westfalen (minus the "kreisfreie Städte").

@acka47
Copy link
Contributor Author

acka47 commented Sep 1, 2014

Interestingly, the triples with http://purl.org/lobid/nwbib-spatial#n are displayed in NWBib as "Raumsystematik: Niederschlag (142524)", see the examples:

As the data will be fixed anyway, I don't know whether the display has to be fixed before that. What do you thing, @fsteeg?

@fsteeg
Copy link
Member

fsteeg commented Sep 1, 2014

Hm, will we still have http://purl.org/lobid/nwbib-spatial#n values after the fix? Or will they get a number like the others?

@acka47
Copy link
Contributor Author

acka47 commented Sep 1, 2014

These will be replaced by dct:spatial links to GeoNames and LinkedGeoData/OSm just like in #17. I missed to provide examples for the desired outcome. I will add them to the description.

@dr0i
Copy link
Member

dr0i commented Sep 9, 2014

http://test.lobid.org/resource/BT000041593 links to http://linkedgeodata.org/triplify/relation157769 and not to the desired http://linkedgeodata.org/triplify/relation62779 . That's why:

http://nominatim.openstreetmap.org/search/de/nrw/kreis%20Coesfeld yields other results than http://nominatim.openstreetmap.org/search/de/nrw/Coesfeld%20kreis . First is correct. So we have to change the order of the literals residing in the catalog, because there is something like "Coesfeld (Kreis)"., not "Kreis Coesfeld".

@dr0i dr0i removed the review label Sep 9, 2014
@dr0i dr0i added enhancement and removed bug labels Sep 30, 2014
@acka47 acka47 changed the title > 14k resources with subject http://purl.org/lobid/nwbib-spatial#n Create links from values in 700n=96|97 Oct 13, 2014
@dr0i
Copy link
Member

dr0i commented Oct 14, 2014

Come on now ! Nominatim was changed so that e.g. the "coesfeld" queries now yield totally crap. Gnn.

@dr0i
Copy link
Member

dr0i commented Oct 14, 2014

The pull request above simplifies the use of the API so that lookups are ok again.

@dr0i
Copy link
Member

dr0i commented Oct 14, 2014

Both mysql tables NrwPlacesGeonamesId and NrwPlacesOsmUrl are adjusted (deleted around 30% of the rows).

dr0i added a commit to lobid/lodmill that referenced this issue Oct 17, 2014
* add test
* differentiate between "Kreis" and "Regierungsbezirk" improving results

See hbz/nwbib#53
@dr0i dr0i added the working label Oct 22, 2014
dr0i added a commit to lobid/lodmill that referenced this issue Oct 22, 2014
@dr0i
Copy link
Member

dr0i commented Oct 22, 2014

Now, with this simpified API query and with enhancing the query with Kreis resp. Regierungsbezirk depending on value 96 resp. 97 the results are the expected ones (see #53 (comment) for the former disappointing status).

@acka47
Copy link
Contributor Author

acka47 commented Oct 27, 2014

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants