VIVO-1408 Use prefix to simplify JAVA class URIs

This commit is contained in:
Jim Blake 2018-01-10 10:06:59 -05:00
parent 5544b52712
commit 71dfb30530
2 changed files with 57 additions and 55 deletions

View file

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

View file

@ -1,5 +1,6 @@
@prefix : <http://vitro.mannlib.cornell.edu/ns/vitro/ApplicationSetup#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix searchIndex: <java:edu.cornell.mannlib.vitro.webapp.searchindex#> .
#
@ -8,8 +9,8 @@
#
:vivoSearchExcluder_namespaceExcluder
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.exclusions.ExcludeBasedOnNamespace> ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.exclusions.SearchIndexExcluder> ;
a searchIndex:exclusions.ExcludeBasedOnNamespace ,
searchIndex:exclusions.SearchIndexExcluder ;
:excludes
"http://purl.obolibrary.org/obo/" .
@ -18,9 +19,9 @@
# Most context nodes look like this: relatedBy ==> node ==> relates
# relates <== node <== relatedBy
:extension_forContextNodes
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.indexing.IndexingUriFinder> ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.DocumentModifier> ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.extensions.LabelsAcrossContextNodes> ;
a searchIndex:indexing.IndexingUriFinder ,
searchIndex:documentBuilding.DocumentModifier ,
searchIndex:extensions.LabelsAcrossContextNodes ;
rdfs:label "Labels across relatedBy/relates" ;
:hasIncomingProperty "http://vivoweb.org/ontology/core#relatedBy" ;
:hasOutgoingProperty "http://vivoweb.org/ontology/core#relates" .
@ -28,17 +29,17 @@
# Some roles look like this: bearerOf ==> role ==> roleContributesTo
# inheresIn <== role <== contributingRole
:extension_forContextNodes_role_contributes_1
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.indexing.IndexingUriFinder> ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.DocumentModifier> ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.extensions.LabelsAcrossContextNodes> ;
a searchIndex:indexing.IndexingUriFinder ,
searchIndex:documentBuilding.DocumentModifier ,
searchIndex:extensions.LabelsAcrossContextNodes ;
rdfs:label "Labels across bearerOf/contributesTo" ;
:hasIncomingProperty "http://purl.obolibrary.org/obo/RO_0000053" ;
:hasOutgoingProperty "http://vivoweb.org/ontology/core#roleContributesTo" .
:extension_forContextNodes_role_contributes_2
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.indexing.IndexingUriFinder> ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.DocumentModifier> ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.extensions.LabelsAcrossContextNodes> ;
a searchIndex:indexing.IndexingUriFinder ,
searchIndex:documentBuilding.DocumentModifier ,
searchIndex:extensions.LabelsAcrossContextNodes ;
rdfs:label "Labels across contributor/inheresIn" ;
:hasIncomingProperty "http://vivoweb.org/ontology/core#contributingRole" ;
:hasOutgoingProperty "http://purl.obolibrary.org/obo/RO_0000052" .
@ -46,17 +47,17 @@
# Other roles look like this: bearerOf ==> role ==> realizedIn
# inheresIn <== role <== realizes
:extension_forContextNodes_role_realizedIn_1
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.indexing.IndexingUriFinder> ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.DocumentModifier> ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.extensions.LabelsAcrossContextNodes> ;
a searchIndex:indexing.IndexingUriFinder ,
searchIndex:documentBuilding.DocumentModifier ,
searchIndex:extensions.LabelsAcrossContextNodes ;
rdfs:label "Labels across bearerOf/realizedIn" ;
:hasIncomingProperty "http://purl.obolibrary.org/obo/RO_0000053" ;
:hasOutgoingProperty "http://purl.obolibrary.org/obo/BFO_0000054" .
:extension_forContextNodes_role_realizedIn_2
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.indexing.IndexingUriFinder> ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.DocumentModifier> ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.extensions.LabelsAcrossContextNodes> ;
a searchIndex:indexing.IndexingUriFinder ,
searchIndex:documentBuilding.DocumentModifier ,
searchIndex:extensions.LabelsAcrossContextNodes ;
rdfs:label "Labels across realizes/inheresIn" ;
:hasIncomingProperty "http://purl.obolibrary.org/obo/BFO_0000055" ;
:hasOutgoingProperty "http://purl.obolibrary.org/obo/RO_0000052" .
@ -64,17 +65,17 @@
# Roles on grants look like this: bearerOf ==> role ==> relatedBy
# inheresIn <== role <== relates
:extension_forContextNodes_roles_on_grants_1
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.indexing.IndexingUriFinder> ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.DocumentModifier> ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.extensions.LabelsAcrossContextNodes> ;
a searchIndex:indexing.IndexingUriFinder ,
searchIndex:documentBuilding.DocumentModifier ,
searchIndex:extensions.LabelsAcrossContextNodes ;
rdfs:label "Labels across bearerOf/relates" ;
:hasIncomingProperty "http://purl.obolibrary.org/obo/RO_0000053" ;
:hasOutgoingProperty "http://vivoweb.org/ontology/core#relatedBy" .
:extension_forContextNodes_roles_on_grants_2
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.indexing.IndexingUriFinder> ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.DocumentModifier> ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.extensions.LabelsAcrossContextNodes> ;
a searchIndex:indexing.IndexingUriFinder ,
searchIndex:documentBuilding.DocumentModifier ,
searchIndex:extensions.LabelsAcrossContextNodes ;
rdfs:label "Labels across contributor/relatedBy" ;
:hasIncomingProperty "http://vivoweb.org/ontology/core#relates" ;
:hasOutgoingProperty "http://purl.obolibrary.org/obo/RO_0000052" .
@ -83,14 +84,14 @@
# ------------------------------------
:vivodocumentModifier_calculateParameters
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.CalculateParameters> ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.DocumentModifier> .
a searchIndex:documentBuilding.CalculateParameters ,
searchIndex:documentBuilding.DocumentModifier .
# ------------------------------------
:vivoUriFinder_VCard
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.indexing.IndexingUriFinder> ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.indexing.SelectQueryUriFinder> ;
a searchIndex:indexing.IndexingUriFinder ,
searchIndex:indexing.SelectQueryUriFinder ;
rdfs:label "Preferred title" ;
:hasPredicateRestriction "http://www.w3.org/2006/vcard/ns#title" ;
:hasPredicateRestriction "http://www.w3.org/2006/vcard/ns#email" ;
@ -116,8 +117,8 @@
""" .
:vivodocumentModifier_PreferredTitle
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.SelectQueryDocumentModifier> ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.DocumentModifier> ;
a searchIndex:documentBuilding.SelectQueryDocumentModifier ,
searchIndex:documentBuilding.DocumentModifier ;
rdfs:label "Preferred title" ;
:hasTargetField "ALLTEXT" ;
:hasTargetField "ALLTEXTUNSTEMMED" ;
@ -135,8 +136,8 @@
""" .
:vivodocumentModifier_EmailAddress
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.SelectQueryDocumentModifier> ,
<java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.DocumentModifier> ;
a searchIndex:documentBuilding.SelectQueryDocumentModifier ,
searchIndex:documentBuilding.DocumentModifier ;
rdfs:label "Email address" ;
:hasSelectQuery """
PREFIX vcard: <http://www.w3.org/2006/vcard/ns#>