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

Refactor RDF and SPARQL #41

Merged
merged 12 commits into from
Jan 9, 2019
Merged

Refactor RDF and SPARQL #41

merged 12 commits into from
Jan 9, 2019

Conversation

cmil
Copy link
Member

@cmil cmil commented Jan 9, 2019

This is a further step towards solving #9.

  • It moves the RDF related code into its own module rdf.xqm.
  • RDF files are now generated per play and tired in the /db/data/dracor/rdf/{corpusname} collection.
  • This is triggered when a document added to or modified in the tei collection.
  • The RDF files are available under the API path /corpora/{corpusname}/play/{playname}/rdf.
  • The /sparql endpoint now properly decodes and executes a posted query (which solves the issue mentioned in SPARQL endpoint #9 (comment)).

ingoboerner and others added 12 commits January 7, 2019 23:09
2 spaces indentation, wrap long lines, consistent double quotes and
spacing
It now removes the collections belonging to the corpus instead of
individual files and recreates them. This only happens when the archive
could was successfully retrieved.
This obsoletes the generateRDF function.
When no document is found it must return an empty sequence.
It now properly decodes the payload and responds with a correct XML
media type and format.
@cmil cmil merged commit 6a8c3be into dracor-org:master Jan 9, 2019
@cmil cmil mentioned this pull request Jan 9, 2019
5 tasks
modules/load.xqm Outdated Show resolved Hide resolved
@lehkost
Copy link
Member

lehkost commented Jan 10, 2019

  • Yes, there are several plays in the German corpus with two authors, for example this one or this one.
  • For identification of authors, we use PND in GerDraCor (mainly for historical reasons), but Wikidata in RusDraCor and all subsequent corpora. It should be easy to map Wikidata onto PND and vice versa.

@cmil cmil deleted the refactor-rdf branch December 11, 2023 01:48
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.

None yet

3 participants