- Public repository of ARDC customizations: https://github.com/au-research/ANDS-ResearchVocabularies-LDA
- Production: Research Vocabularies Australia (RVA) https://vocabs.ardc.edu.au/
- Demo: https://demo.vocabs.ardc.edu.au/
We "bootstrapped" by cloning the repo at
https://github.com/CSIRO-enviro-informatics/sissvoc-package.git
and following the instructions in the README.md
. I.e., we used the
package-sissvoc-vanilla.sh
.
To get this to work for us, we had to edit
package-sissvoc-vanilla--no-build.sh
to use the command python3
intead of python
: the gen_sissvoc3_config.py
requires Python 3,
and the default Python on our servers was/is 2.7.
Through SISSVoc we make available some "fixed" endpoints for what we call curated vocabularies: special endpoints that "have to work" for us, because they support Research Data Australia. (In fact, RDA now has its own caches of curated vocabulary data, so it no longer hits RVA.)
Overrides common to all our servers. These replace or add to the contents of the generated WAR file.
We set com.epimorphics.api.initialSpecFile
to
resources/default/config/*.ttl,/var/vocab-files/registry-data/specs/*.ttl
.
The former directory contains the "hard-coded" spec files for the "curated" vocabularies; the latter directory is where RVA puts each generated spec file during the publication process.
We use a recent release of the Elda library, currently 1.3.23. We drop this in on top of the JAR file fetched as part of the SISSVoc build process.
- css: overrides to use our own banner, fix word wrapping issues
- images: our banner, and some otherwise-missing images
- transform: our custom ands-ashtml-sissvoc.xsl. It imports the
ashtml-sissvoc.xsl
stylesheet and then overrides certain templates.
Overrides that are server-specific.
The "hard-coded" spec files for our "curated" vocabularies, for our production server (RVA).
resources/default/images
: The SVG source of our banner, used to generate the banner in PNG format incommon/resources/default/images
.
This repository doesn't include the template used to generate spec files for vocabularies published by RVA. You can find that here: https://github.com/au-research/ANDS-ResearchVocabularies-Registry/blob/master/conf/ANDS-ELDAConfig-template.ttl.sample
The customizations in that file are:
- Customized header to specify the vocabulary title, "more information", and (not used) a link to further documentation about the vocabulary.
- Customized basic concept viewer that gets labels for narrower and broader concepts.
- Customized concept scheme viewer that gets labels for top concepts.
- Extra endpoints:
/concept/topConcepts
to fetch all top concepts of all concept schemes, usingskos:hasTopConcept
.concept/topConcepts?scheme={scheme_uri}
to fetch top concepts of one concept scheme./concept?anycontains={text}
to fetch concepts where the label (eitherrdfs:label
orskos:prefLabel
orskos:altLabel
) or notation, or the concept's IRI contains some text./concept/inCollection?uri={baseCollection}
to fetch concepts in a SKOS collection, usingskos:member
./concept/allBroader?uri={baseConcept}
to fetch broader concepts using the transitive closure ofskos:narrower
(yes, in reverse, notskos:broader
directly)/concept/allNarrower?uri={baseConcept}
to fetch narrower concepts using the transitive closure ofskos:broader
(yes, in reverse, notskos:narrower
directly)
- Definitions of some "popular" properties (from DC Elements and DC Terms) so that appear more nicely (?) in generated results.