VIVO Documentation
Page History
...
Custom queries can be added to any file the vivo-home/rdf/display/everytime directory (or any other file directory read by VIVO during startup). Using searchIndexerConfigurationVivo.n3 as a template, create a query that returns the data you wish to add to the search index. For example, if you wanted to create a custom search field for tracking open access publications you flag with a custom data property:
Code Block |
---|
@prefix : <http://vitro.mannlib.cornell.edu/ns/vitro/ApplicationSetup#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . :vivodocumentModifier_openAccess a <java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.SelectQueryDocumentModifier> , <java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.DocumentModifier> ; rdfs:label "open access" ; :hasTargetField "open_access_s" ; :hasSelectQuery """ PREFIX wos: <http://webofscience.com/ontology/wos#> SELECT ?status WHERE { ?uri wos:openAccess ?status . } LIMIT 1 """ . |
...
Overview
Content Tools