VIVO-1408 Use prefix to simplify JAVA class URIs

This commit is contained in:
Jim Blake 2018-01-10 08:51:41 -05:00
parent 7f8b16bc1b
commit 8cba661a0e
2 changed files with 49 additions and 46 deletions

View file

@ -11,6 +11,7 @@
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
@prefix : <http://vitro.mannlib.cornell.edu/ns/vitro/ApplicationSetup#> . @prefix : <http://vitro.mannlib.cornell.edu/ns/vitro/ApplicationSetup#> .
@prefix vitroWebapp: <java:edu.cornell.mannlib.vitro.webapp#> .
# ---------------------------- # ----------------------------
# #
@ -19,8 +20,8 @@
# #
:application :application
a <java:edu.cornell.mannlib.vitro.webapp.application.ApplicationImpl> , a vitroWebapp:application.ApplicationImpl ,
<java:edu.cornell.mannlib.vitro.webapp.modules.Application> ; vitroWebapp:modules.Application ;
:hasSearchEngine :instrumentedSearchEngineWrapper ; :hasSearchEngine :instrumentedSearchEngineWrapper ;
:hasSearchIndexer :basicSearchIndexer ; :hasSearchIndexer :basicSearchIndexer ;
:hasImageProcessor :iioImageProcessor ; :hasImageProcessor :iioImageProcessor ;
@ -35,8 +36,8 @@
# #
:iioImageProcessor :iioImageProcessor
a <java:edu.cornell.mannlib.vitro.webapp.imageprocessor.imageio.IIOImageProcessor> , a vitroWebapp:imageprocessor.imageio.IIOImageProcessor ,
<java:edu.cornell.mannlib.vitro.webapp.modules.imageProcessor.ImageProcessor> . vitroWebapp:modules.imageProcessor.ImageProcessor .
# ---------------------------- # ----------------------------
# #
@ -46,8 +47,8 @@
# #
:ptiFileStorage :ptiFileStorage
a <java:edu.cornell.mannlib.vitro.webapp.filestorage.impl.FileStorageImplWrapper> , a vitroWebapp:filestorage.impl.FileStorageImplWrapper ,
<java:edu.cornell.mannlib.vitro.webapp.modules.fileStorage.FileStorage> . vitroWebapp:modules.fileStorage.FileStorage .
# ---------------------------- # ----------------------------
# #
@ -58,13 +59,13 @@
# #
:instrumentedSearchEngineWrapper :instrumentedSearchEngineWrapper
a <java:edu.cornell.mannlib.vitro.webapp.searchengine.InstrumentedSearchEngineWrapper> , a vitroWebapp:searchengine.InstrumentedSearchEngineWrapper ,
<java:edu.cornell.mannlib.vitro.webapp.modules.searchEngine.SearchEngine> ; vitroWebapp:modules.searchEngine.SearchEngine ;
:wraps :solrSearchEngine . :wraps :solrSearchEngine .
:solrSearchEngine :solrSearchEngine
a <java:edu.cornell.mannlib.vitro.webapp.searchengine.solr.SolrSearchEngine> , a vitroWebapp:searchengine.solr.SolrSearchEngine ,
<java:edu.cornell.mannlib.vitro.webapp.modules.searchEngine.SearchEngine> . vitroWebapp:modules.searchEngine.SearchEngine .
# ---------------------------- # ----------------------------
# #
@ -74,8 +75,8 @@
# #
:basicSearchIndexer :basicSearchIndexer
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.SearchIndexerImpl> , a vitroWebapp:searchindex.SearchIndexerImpl ,
<java:edu.cornell.mannlib.vitro.webapp.modules.searchIndexer.SearchIndexer> ; vitroWebapp:modules.searchIndexer.SearchIndexer ;
:threadPoolSize "10" . :threadPoolSize "10" .
# ---------------------------- # ----------------------------
@ -89,26 +90,26 @@
# #
:sdbContentTripleSource :sdbContentTripleSource
a <java:edu.cornell.mannlib.vitro.webapp.triplesource.impl.sdb.ContentTripleSourceSDB> , a vitroWebapp:triplesource.impl.sdb.ContentTripleSourceSDB ,
<java:edu.cornell.mannlib.vitro.webapp.modules.tripleSource.ContentTripleSource> . vitroWebapp:modules.tripleSource.ContentTripleSource .
#:tdbContentTripleSource #:tdbContentTripleSource
# a <java:edu.cornell.mannlib.vitro.webapp.triplesource.impl.tdb.ContentTripleSourceTDB> , # a vitroWebapp:triplesource.impl.tdb.ContentTripleSourceTDB ,
# <java:edu.cornell.mannlib.vitro.webapp.modules.tripleSource.ContentTripleSource> ; # vitroWebapp:modules.tripleSource.ContentTripleSource ;
# # May be an absolute path, or relative to the Vitro home directory. # # May be an absolute path, or relative to the Vitro home directory.
# :hasTdbDirectory "tdbContentModels" . # :hasTdbDirectory "tdbContentModels" .
#:sparqlContentTripleSource #:sparqlContentTripleSource
# a <java:edu.cornell.mannlib.vitro.webapp.triplesource.impl.virtuoso.ContentTripleSourceSPARQL> , # a vitroWebapp:triplesource.impl.virtuoso.ContentTripleSourceSPARQL ,
# <java:edu.cornell.mannlib.vitro.webapp.modules.tripleSource.ContentTripleSource> ; # vitroWebapp:modules.tripleSource.ContentTripleSource ;
# # The URI of the SPARQL endpoint for your triple-store. # # The URI of the SPARQL endpoint for your triple-store.
# :hasEndpointURI "PUT_YOUR_SPARQL_ENDPOINT_URI_HERE" ; # :hasEndpointURI "PUT_YOUR_SPARQL_ENDPOINT_URI_HERE" ;
# # The URI to use for SPARQL UPDATE calls against your triple-store. # # The URI to use for SPARQL UPDATE calls against your triple-store.
# :hasUpdateEndpointURI "PUT_THE UPDATE_URI_HERE" . # :hasUpdateEndpointURI "PUT_THE UPDATE_URI_HERE" .
#:virtuosoContentTripleSource #:virtuosoContentTripleSource
# a <java:edu.cornell.mannlib.vitro.webapp.triplesource.impl.virtuoso.ContentTripleSourceVirtuoso> , # a vitroWebapp:triplesource.impl.virtuoso.ContentTripleSourceVirtuoso ,
# <java:edu.cornell.mannlib.vitro.webapp.modules.tripleSource.ContentTripleSource> ; # vitroWebapp:modules.tripleSource.ContentTripleSource ;
# # The URI of Virtuoso's SPARQL endpoint. # # The URI of Virtuoso's SPARQL endpoint.
# :hasEndpointURI "PUT_YOUR_VIRTUOSO_URI_HERE" ; # :hasEndpointURI "PUT_YOUR_VIRTUOSO_URI_HERE" ;
# # The URI to use for SPARQL UPDATE calls against Virtuoso. # # The URI to use for SPARQL UPDATE calls against Virtuoso.
@ -123,8 +124,8 @@
# #
:tdbConfigurationTripleSource :tdbConfigurationTripleSource
a <java:edu.cornell.mannlib.vitro.webapp.triplesource.impl.tdb.ConfigurationTripleSourceTDB> , a vitroWebapp:triplesource.impl.tdb.ConfigurationTripleSourceTDB ,
<java:edu.cornell.mannlib.vitro.webapp.modules.tripleSource.ConfigurationTripleSource> . vitroWebapp:modules.tripleSource.ConfigurationTripleSource .
# ---------------------------- # ----------------------------
# #
@ -134,5 +135,5 @@
# #
:jfactTBoxReasonerModule :jfactTBoxReasonerModule
a <java:edu.cornell.mannlib.vitro.webapp.tboxreasoner.impl.jfact.JFactTBoxReasonerModule> , a vitroWebapp:tboxreasoner.impl.jfact.JFactTBoxReasonerModule ,
<java:edu.cornell.mannlib.vitro.webapp.modules.tboxreasoner.TBoxReasonerModule> . vitroWebapp:modules.tboxreasoner.TBoxReasonerModule .

View file

@ -1,6 +1,8 @@
@prefix : <http://vitro.mannlib.cornell.edu/ns/vitro/ApplicationSetup#> . @prefix : <http://vitro.mannlib.cornell.edu/ns/vitro/ApplicationSetup#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix searchIndex: <java:edu.cornell.mannlib.vitro.webapp.searchindex#> .
# #
# configure the SearchIndexer # configure the SearchIndexer
@ -8,8 +10,8 @@
# Individuals with these types will be excluded from the search index # Individuals with these types will be excluded from the search index
:searchExcluder_typeExcluder :searchExcluder_typeExcluder
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.exclusions.ExcludeBasedOnType> , a searchIndex:exclusions.ExcludeBasedOnType ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.exclusions.SearchIndexExcluder> ; searchIndex:exclusions.SearchIndexExcluder ;
:excludes :excludes
"http://www.w3.org/2002/07/owl#AnnotationProperty" , "http://www.w3.org/2002/07/owl#AnnotationProperty" ,
"http://www.w3.org/2002/07/owl#DatatypeProperty" , "http://www.w3.org/2002/07/owl#DatatypeProperty" ,
@ -17,8 +19,8 @@
# Individuals with types from these namespaces will be excluded from the search index. # Individuals with types from these namespaces will be excluded from the search index.
:searchExcluder_namespaceExcluder :searchExcluder_namespaceExcluder
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.exclusions.ExcludeBasedOnNamespace> , a searchIndex:exclusions.ExcludeBasedOnNamespace ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.exclusions.SearchIndexExcluder> ; searchIndex:exclusions.SearchIndexExcluder ;
:excludes :excludes
"http://vitro.mannlib.cornell.edu/ns/vitro/0.7#" , "http://vitro.mannlib.cornell.edu/ns/vitro/0.7#" ,
"http://vitro.mannlib.cornell.edu/ns/vitro/public#" , "http://vitro.mannlib.cornell.edu/ns/vitro/public#" ,
@ -27,38 +29,38 @@
# Individuals with URIs in these namespaces will be excluded from the search index. # Individuals with URIs in these namespaces will be excluded from the search index.
:searchExcluder_typeNamespaceExcluder :searchExcluder_typeNamespaceExcluder
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.exclusions.ExcludeBasedOnTypeNamespace> , a searchIndex:exclusions.ExcludeBasedOnTypeNamespace ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.exclusions.SearchIndexExcluder> ; searchIndex:exclusions.SearchIndexExcluder ;
:excludes :excludes
"http://vitro.mannlib.cornell.edu/ns/vitro/role#public" . "http://vitro.mannlib.cornell.edu/ns/vitro/role#public" .
:searchExcluder_syncingTypeExcluder :searchExcluder_syncingTypeExcluder
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.exclusions.SyncingExcludeBasedOnType> , a searchIndex:exclusions.SyncingExcludeBasedOnType ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.exclusions.SearchIndexExcluder> . searchIndex:exclusions.SearchIndexExcluder .
# ------------------------------------ # ------------------------------------
:uriFinder_forDataProperties :uriFinder_forDataProperties
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.indexing.IndexingUriFinder> , a searchIndex:indexing.IndexingUriFinder ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.indexing.AdditionalURIsForDataProperties> . searchIndex:indexing.AdditionalURIsForDataProperties .
:uriFinder_forObjectProperties :uriFinder_forObjectProperties
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.indexing.IndexingUriFinder> , a searchIndex:indexing.IndexingUriFinder ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.indexing.AdditionalURIsForObjectProperties> . searchIndex:indexing.AdditionalURIsForObjectProperties .
:uriFinder_forTypeStatements :uriFinder_forTypeStatements
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.indexing.IndexingUriFinder> , a searchIndex:indexing.IndexingUriFinder ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.indexing.AdditionalURIsForTypeStatements> . searchIndex:indexing.AdditionalURIsForTypeStatements .
:uriFinder_forClassGroupChange :uriFinder_forClassGroupChange
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.indexing.IndexingUriFinder> , a searchIndex:indexing.IndexingUriFinder ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.indexing.URIsForClassGroupChange> . searchIndex:indexing.URIsForClassGroupChange .
# ------------------------------------ # ------------------------------------
:documentModifier_AllNames :documentModifier_AllNames
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.SelectQueryDocumentModifier> , a searchIndex:documentBuilding.SelectQueryDocumentModifier ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.DocumentModifier> ; searchIndex:documentBuilding.DocumentModifier ;
rdfs:label "All labels are added to name fields." ; rdfs:label "All labels are added to name fields." ;
:hasTargetField "nameRaw" ; :hasTargetField "nameRaw" ;
:hasSelectQuery """ :hasSelectQuery """
@ -70,8 +72,8 @@
""" . """ .
:documentModifier_NameFieldBooster :documentModifier_NameFieldBooster
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.FieldBooster> , a searchIndex:documentBuilding.FieldBooster ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.DocumentModifier> ; searchIndex:documentBuilding.DocumentModifier ;
:hasTargetField "nameRaw" ; :hasTargetField "nameRaw" ;
:hasTargetField "nameLowercase" ; :hasTargetField "nameLowercase" ;
:hasTargetField "nameUnstemmed" ; :hasTargetField "nameUnstemmed" ;
@ -79,5 +81,5 @@
:hasBoost "1.2"^^xsd:float . :hasBoost "1.2"^^xsd:float .
:documentModifier_thumbnailImageUrl :documentModifier_thumbnailImageUrl
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.ThumbnailImageURL> , a searchIndex:documentBuilding.ThumbnailImageURL ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.DocumentModifier> . searchIndex:documentBuilding.DocumentModifier .