-
Notifications
You must be signed in to change notification settings - Fork 1
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
Check against srophe app to ensure record doesn't already exist #3
Comments
Priority for implementing taxonomy module. |
@dlschwartz if memory serves you use something in a schematron rule to check to see if a referenced Syriaca URI exists in our data/on the app, is that right? Maybe this is for Does that sound familiar? I'm wondering if we could use a similar functionality for the transform. |
@dlschwartz I may have found them: https://github.com/srophe/srophe-eXist-app/tree/master/documentation/indexes (Cf. srophe/srophe-eXist-app#1239) We only have persons and places, and I'm not sure how these are generated. |
Note to self: The xquery module that builds these indices is here: https://github.com/srophe/srophe-eXist-app/blob/master/modules/build-index.xql Could have this adapted to run on each entity collection? |
@wlpotter Winona produced these. Ideally we should have these automated to run periodically. It would be nice if the uploading of new records to the master branch of srophe-app-data would trigger an update. The index for the taxonomy is here: https://github.com/srophe/srophe-app-data/blob/master/data/subjects/taxonomyIndex.xml. It should instead be in the same place as the person and place records. |
The xslt is here: https://github.com/srophe/srophe-app-data/blob/master/data/subjects/taxonomyIndex.xsl. I need to modify this as we tweak the data but I would like to keep this xslt. It produces an index that groups the keywords in a range of ways. I use those groupings to validate SPEAR records so I'll want to maintain those. |
And yes, I think we should have an index for each data type. Ideally they could all be automated to run whenever we upload one or more new records. If not that, maybe we could have a maintenance script that would just run periodically. |
For the non-taxonomy entities, the following is needed
I've split off taxonomy to #37 |
I believe I have this working, though I'm leaving open for testing. This also may get tweaked slightly as I work on #27. Currently it just returns an un-namespaced |
I've tested and can confirm that this raises an error to the console letting the use know a given URI already exists (regardless of file/console setting); it also does not create the record if it already exists. I have also prepended a console message whenever the index is not available (either because it returns 404 or no index is selected). This is just given as a warning so that we can keep overwriting the taxonomy during its current development. I believe this issue is fixed. |
Use the app index (figure out linking to it)
Specify the app index in config.xml
The text was updated successfully, but these errors were encountered: