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

SOLR index using construct query from field definitions #1

Open
lklic opened this issue Apr 7, 2021 · 2 comments
Open

SOLR index using construct query from field definitions #1

lklic opened this issue Apr 7, 2021 · 2 comments
Assignees

Comments

@lklic
Copy link
Contributor

lklic commented Apr 7, 2021

In order to build a robust external SOLR index for full-text searching, we need to write a SPARQL construct statement that uses all relevant field definitions to get the labels of all fields related to an E22 artwork / photograph.

This should be scripted so that for each Pharos URI, we construct a list of relevant labels, and produce some JSON-LD to pass into an external SOLR index.

This should include all vocab data, like related actors, materials, techniques, etc. so that these can be properly indexed.

@MinadakisNikos
Copy link

Writing some thoughts here:

Classical SOLR indexing for RDF starts with creating the actual index between the URIs and the related literals. Obviously for our case we could use as intermediate properties rdfs:label or is_identified_by ?id . ?id rdfs:label ?label.

What Lukas proposes is a great idea. The uri for our index lets say will be the ?subject. The literals will be the rdfs:labels that each field eventually ends to. Because of the materialization that took place the previous months all the intermediate properties ( or 90% of them) will be the fundamental relationships. So we will have indexes such as:
pharos:MonaLisa <-> "Mona Lisa" (Title)
pharos:MonaLisa <-> "Leonardo" (Creator)
pharos:MonaLisa <-> "Oil on Wood" (Technique)
pharos:MonaLisa <-> "Wood" (Material)
pharos:MonaLisa <-> "Louvre" (Repository)
pharos:MonaLisa <-> "Paris" (Location)
pharos:MonaLisa <-> "30 cm" (Dimension)
pharos:MonaLisa <-> "16th Century" (Date of Production)

but also:
pharos:Leonardo <-> "Leonardo da Vinci" (Name)
pharos:Leonardo <-> "Leonardo" (Name - Part)
pharos:Leonardo <-> "Vinci" (Name - Part OR Place of Birth)
pharos:Leonardo <-> "Italian" (Nationality)
pharos:Leonardo <-> "Florence" (Active at)
pharos:Leonardo <-> "Verrochio" (Student of)
pharos:Leonardo <-> "MonaLisa" (Title of Work)

Now two questions arise, one very important and one less important but handy.

The first is how we rank?

The second how we take advantage of indexes of works for examples to not recreate all the indexes of Artists? The way we do with the building blocks of FC/FRs

@lklic lklic transferred this issue from ArtResearch/artresearch.net Apr 8, 2021
@mafragias
Copy link
Contributor

this has been implemented

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

4 participants