Commit graph

562 commits

Author SHA1 Message Date
Jim Blake
d25176298d VIVO-869 Drastically simplify the search configuration.
Create LabelsAcrossContextNodes to replace AdditionalURIsForContextNodes. It's more configurable.
Create SelectQueryUriFinder to replace AdditionalUrisForVCards. It's more configurable.
Rename SimpleSparqlQueryDocumentModifier to SelectQueryDocumentModifier, to conform.
Radically simplify the VIVO search configuration, omitting all special cases except those for VCards.
2015-02-06 15:22:42 -05:00
Jim Blake
de5b80bf75 VIVO-869 ABoxRecomputer should pause the SearchIndexer during a rebuild. 2015-01-22 15:49:08 -05:00
Jim Blake
8c3e06fc78 VIVO-870 Move the DocumentModifiers into the configuration. 2015-01-16 16:52:52 -05:00
Jim Blake
7b7ca268c8 VIVO-871 Improve performance when getting VClasses(). 2015-01-16 11:39:56 -05:00
Jim Blake
dee53e3aac VIVO-870 Implement UpdateStatementsTask.
Also add the listener to support it and get rid of the last of the vestigial classes.
2015-01-12 15:15:16 -05:00
Jim Blake
0602406c53 VIVO-870 Create IndividualDao.getAllIndividualUris()
This replaces IndividualDao.getAllOfThisTypeIterator(). It returns the list that was created instead of
the iterator.

This would require a change to ObjectSourceIFace, but we get rid of it instead. Nobody was using it.
2015-01-11 18:30:28 -05:00
Jim Blake
64624f2b84 VIVO-870 Make IndexingUriFinders configurable.
Use no-argument constructors, supplying data through the ContextModelsUser interface as needed.

Add toString() methods to IndexingUriFinders, DocumentModifiers and SearchIndexExcluders
2015-01-07 17:25:12 -05:00
Jim Blake
2ceab6e3df VIVO-873 Adapt the client code to the new interface.
Create a bridge implementation of SearchIndexerImpl that just wraps around an old IndexBuilder.

Modify client code:
Application, BasicAuthenticator, SearchServiceController, SparqlUpdateApiController,
UpdateUrisInIndex and VClassGroupCache

Rewrite IndexController to use AJAX and to show the current status and history of the indexer events.
2015-01-07 16:18:41 -05:00
Jim Blake
3bc42c1456 Merge branch 'develop' into feature/searchIndexerTry 2015-01-06 16:26:00 -05:00
Jim Blake
8a0d8a2639 VIVO-873 create SearchEngine.documentCount()
Also, remove the vestigial IndexConstants class and two unused methods in PagedSearchController.
2015-01-06 16:04:19 -05:00
Jim Blake
2d44f5bec3 VIVO-873 restructure packages for SearchIndexer
documentBuilding, exclusions, and indexing, under  searchindex instead of search.
2015-01-04 17:19:13 -05:00
Jim Blake
ac39b0799e VIVO-935 Clean up code for search exclusion.
Take out the attribute key in SearchIndexerSetup. Nobody ever sets that attribute.
Take out the VClassGroupCache.removeClassesHiddenFromSearch() method. If nobody sets that attribute, this method does nothing.
Take out VClassGroupDao.removeClassesHiddenFromSearch() and VClassGroupDaoJena.removeClassesHiddenFromSearch(). They are never called.
Take out ClassProhibitedFromSearch interface. It is implemented but never referenced.
Take out FileBasedProhibitedFromSearch. It is never used.
Move ProhibitedFromSearch and ProhibitedFromSearchTest from edu.cornell.mannlib.vitro.webapp.search.beans to edu.cornell.mannlib.vitro.webapp.dao.vclassgroup
2015-01-02 14:01:06 -05:00
Jim Blake
51f537f0bc VIVO-778 Remove Pellet from SimpleReasoner unit tests. 2014-12-31 14:58:12 -05:00
Jim Blake
481d3fc1d8 VIVO-695 VIVO-699 Refactor and optimize the PropertyRestrictionBean
Formerly the PropertyRestrictionPolicyHelper.
2014-12-10 17:39:06 -05:00
Jim Blake
ec36574041 VIVO-774 fix a unit test that was broken by faux property refactoring. 2014-12-09 11:41:26 -05:00
Jim Blake
875ba66a46 Merge branch 'develop' into feature/fauxEditing 2014-12-08 15:55:32 -05:00
Jim Blake
14d1cdb5bf VIVO-766 Java 8 writes prefixes in a different order.
Probably due to a change in the algorithm for HashMap, or something similar.
This test expected a particular string in response, but Java 7 and Java 8 returned two different, but equivalent, strings.
Modify it so it will accept @prefix or xmlns: specifications in any order.
2014-12-08 15:28:21 -05:00
Jim Blake
3b508a6c97 VIVO-766 Java 8 handles no-argument constructors differently.
Claims that a non-static inner class has no no-argument constructors.
2014-12-08 15:25:59 -05:00
Jim Blake
75fff3ee54 Remove call to deprecated JUmitMatchers method. 2014-12-08 11:25:34 -05:00
Jim Blake
4b71c1d6bb VIVO-778 Refactor the connections to the TBox reasoner.
Replace PelletListener with a TBoxReasonerModule in the Application.
   The reasoner will be accessible only through here, not as a context attribute or through the WebappDaoFactory.
Split out the initialization of the TBox reasoner from SimpleReasonerSetup.
Break out the filtering of TBox changes into a ConfiguredReasonerListener.
Refactor the threading logic into a BasicTBoxReasonerDriver.
   Add a factory for creating VitroBackgroundThreads in an Executor.
Isolate the actual reasoner into a TBoxReasoner implementation. In this case, PelletTBoxReasoner.
Combine the consistency flag, error flag, explanation, and running status into one TBoxReasonerStatus object.
2014-12-08 10:54:07 -05:00
Jim Blake
ef6f92539f Merge branch 'develop' into feature/fauxEditing 2014-11-18 11:56:52 -05:00
Jim Blake
1e6b66a12c VIVO-906 Explicitly configure the SearchIndexExcluders and DocumentModifiers. 2014-11-13 17:14:42 -05:00
Jim Blake
ebb31eb081 VIVO-906 Assemble application at runtime.
Create an object to represent VitroHomeDirectory
Instantiate TripleSources, FileStorage, etc, based on the config file.
2014-11-13 17:11:11 -05:00
Jim Blake
d18c9a38ca Stop 'deprecated' messages from JUnit imports. 2014-11-09 16:22:25 -05:00
Jim Blake
2fa9583569 Merge branch 'develop' into feature/fauxEditing
Conflicts:
	webapp/src/edu/cornell/mannlib/vitro/webapp/utils/configuration/ConfigurationBeanLoader.java
	webapp/src/edu/cornell/mannlib/vitro/webapp/utils/configuration/ConfigurationRdfParser.java
	webapp/src/edu/cornell/mannlib/vitro/webapp/utils/jena/Critical.java
2014-11-09 16:14:48 -05:00
Jim Blake
72b86bd4d5 Improve handling of critical sections
Use LockableOntModel, etc., instead of Critical.
2014-11-09 16:05:06 -05:00
Jim Blake
190bf87979 VIVO-774 More functionality: implement deleteFauxProperty() 2014-10-31 18:17:38 -04:00
Jim Blake
681219da72 Merge branch 'develop' into feature/fauxEditing 2014-10-27 14:20:56 -04:00
Jim Blake
3b4e2bc012 VIVO-782 Create PropertyDao.FullPropertyKey class.
Replaces Pair<String,Pair<String, String>> when building maps of Properties and FauxProperties.
2014-10-27 14:20:22 -04:00
Jim Blake
21df0f53be Starting the skeleton 2014-10-27 12:42:48 -04:00
Jim Blake
af0bac74a2 Remove deprecation warnings in JUnit tests. 2014-10-24 10:59:33 -04:00
Jim Blake
73b200aac1 Create ConfigurationBeansLoader.
Also dependent classes and unit tests.
2014-10-24 10:29:59 -04:00
Jim Blake
a4d4d761bc Update JUnit and add Hamcrest matchers.
Allows better testing of expected exceptions in unit tests.
2014-10-24 10:27:53 -04:00
Jim Blake
3f8286756a Merge branch 'develop' of git+ssh://github.com/vivo-project/Vitro into develop 2014-10-17 10:56:08 -04:00
Jim Blake
dfd4a310ba Unit test for NameFields search document modifier. 2014-10-17 10:55:03 -04:00
Jim Blake
a6ce4374dc Unit test for NameFields search document modifier. 2014-10-17 10:52:53 -04:00
Jim Blake
7a12354430 VIVO-873 Improve unit tests of DocumentModifier classes
Add copy constructors, equals(), and hashCode() to BaseSearchInputDocument and BaseSearchInputField
2014-10-17 10:52:11 -04:00
Jim Blake
3ccb10dc83 VIVO-873 Simplify and document the DocumentModifier interface.
allUris parameter on modifyDocument() was not documented and not used.
There is no logical reason for modifyDocument to throw a SkipIndividualException.
2014-10-16 12:30:50 -04:00
Jim Blake
78c8f102f8 Continue to reduce the Model Madness!
Add OntModelCache to the top of the stack of RDF data structures.
Add DataStructuresProvider to the bottom of the stack.
Redesign ModelAccess method signatures.
Create the ShowSources page.
Remove RequestModelsPrep, except for setting the Collator.
Reduce the complexity of ContentModelsSetup and ConfigurationModelsSetup.

VIVO-225 VIVO-819 VIVO-820 VIVO-821 VIVO-823 VIVO-832
2014-10-10 10:07:56 -04:00
Jim Blake
7f220abf6f VIVO-225 Use URI Strings to fetch models, not enums. 2014-08-19 15:07:25 -04:00
Jim Blake
6e5bbaeef8 VIVO-848 Move the FileStorage system behind an interface
Add it to the Application framework, and do some cleanup.
2014-08-14 16:54:29 -04:00
Jim Blake
c751ecdc6d VIVO-848 move the image processing code behind an interface 2014-08-14 15:00:05 -04:00
Jim Blake
63ed82cef9 VIVO-823 Create some tests for the VitroModelFactory
Make changes as determined by the tests, to BulkUpdatingOntModel as well.
Add debug statements to ModelSynchronizer.
2014-07-18 17:04:58 -04:00
Jim Blake
04f763109e VIVO-823 Create several ModelMaker decorators, with tests 2014-07-18 17:02:21 -04:00
Jim Blake
1343a762e8 Add license tag. 2014-07-17 11:17:42 -04:00
brianjlowe
d65cc2b106 adding some unit tests to JenaIngestUtils 2014-06-27 16:44:14 -04:00
Jim Blake
baf0d59a68 VIVO-799 Add setRdfsLabel() to unit test class. 2014-06-18 17:41:38 -04:00
Jim Blake
4809fcb37e VIVO-719 Create the first attempt at restore. 2014-06-06 15:27:17 -04:00
Jim Blake
3a2930cdc6 VIVO-773 Update the JENA libraries and adjust to the changes
Replace the JAR files with more current ones.
Add a one-line change to BaseInfGraph (from the Jena source), so it will work with Pellet 2.3.1
Adjust all implementations of Graph to include new methods and remove old ones.
Add annotations and generics to reduce compiler warnings.
Remove all dependencies on RDB, which is no longer supported.
   This requires considerable refactoring of JenaIngestController, RDFUploadController, listModels.jsp
Refactor the ModelMaker uses
   Remove VitroJenaModelMaker,
   Revise VitroInterceptingModelMaker to be configurable for Config or Content models
Add debug logging code to ModelChangeImpl ChangeSetImpl, RDFServiceJena.
Add TDB support: RDFServiceFactoryTDB, RDFServiceTDB
   Refactor RDFServiceJena and RDFServiceSDB so much of the code can be reused by RDFServiceTDB
Accomodate two RDFService instances - one for Configuration models and one for Content models.
   Changes to RDFServiceUtils, RDFServiceSetup
   Configuration models use TDB directory in Vitro home directory
Handle bulk updating:
   Jena has deprecated bulk operations, and their models classes no longer use the bulk updaters
   Create a VitroModelFactory to use instead of the ModelFactory, when bulk updating is required.
   Create adapter classes: BulkUpdatingModel, BulkUpdatingOntModel, AbstractModelDecorator
Make the configuration model setup algorithms uniform
   Combine ApplicationModelSetup and UserModelSetup into ConfigurationModelsSetup
2014-06-01 18:23:21 -04:00
Jim Blake
0b345a6aee VIVO-766 modify test so it will not fail under Java 8. 2014-05-15 10:42:37 -04:00