Commit graph

5840 commits

Author SHA1 Message Date
Jim Blake
982e81aece VIVO-871 Produce timing breakdowns from a developer option 2015-01-13 16:03:16 -05:00
Jim Blake
3fd72a7110 VIVO-870 Confirm that DocumentModifiers are thread-safe. 2015-01-12 18:07:41 -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
99c03ce49a Merge branch 'develop' into feature/searchIndexerTry 2015-01-09 16:41:36 -05:00
Jim Blake
39f1ed0b27 VIVO-870 Implement UpdateUrisTask.
At the same time, broke the old IndexBuilder, so no listener and no rebuild.
2015-01-09 16:38:08 -05:00
brianjlowe
5d6780620b VIVO-890 and VIVO-892 ABoxRecomputer performance improvements 2015-01-08 16:40:45 +02: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
6513d34d86 VIVO-909 Improve documentation of the TripleStoreQuirks 2015-01-05 18:54:36 -05:00
Jim Blake
7639bf43e3 VIVO-907 make the the check for isomorphism more efficient.
Read the file graph into memory and check against that.
2015-01-05 12:58:03 -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
f4f51a096f Merge branch 'feature/pelletRemoval' into develop 2014-12-31 15:13:37 -05:00
Jim Blake
b8ad8b64d0 VIVO-778 remove the pellet libraries. 2014-12-31 15:09:39 -05:00
Jim Blake
3905e84882 VIVO-778 Remove references to pellet. 2014-12-31 15:09:13 -05:00
Jim Blake
297d78134b VIVO-778 Remove the Pellet kluge in Jena.
This modification to BaseInfGraph was required to make Jena 2.10.1 compatible with Pellet 2.3.1
2014-12-31 15:08:36 -05:00
Jim Blake
51f537f0bc VIVO-778 Remove Pellet from SimpleReasoner unit tests. 2014-12-31 14:58:12 -05:00
Jim Blake
ac37a7f8e9 Merge pull request #7 from patrickmcelwee/fix_date_precision_display
Allow getFormat function to accept qualified date precisions
2014-12-30 17:04:01 -05:00
Patrick McElwee
4905c10be0 Allow getFormat function to accept qualified date precisions
This allows the date precision to be a fully qualified URL, like
"http://vivoweb.org/ontology/core#yearPrecision", while still accepting
"yearPrecision"
2014-12-30 16:54:01 -05:00
Jim Blake
08efbe2735 Don't offer Pellet reasoning on ingest. 2014-12-21 09:12:23 -05:00
Jim Blake
b6b8540546 VIVO-778 Let the TBoxReasoner provide its own OntModelSpec. 2014-12-21 09:11:22 -05:00
Jim Blake
22658eec7b Merge branch 'feature/elk' into develop 2014-12-17 17:46:19 -05:00
Jim Blake
8382c2620a VIVO-778 Use JFact as the TBox reasoner, instead of Pellet.
There are still some differences between the two, and I expect  some answers from Jon and Brian regarding irregularities in the ontologies.

The Pellet libraries have not yet been removed.
2014-12-17 17:44:21 -05:00
Tim Worrall
5c7d8990e8 VIVO-899: brought back the 3.1 version of HTTPClient jar file. 2014-12-17 10:45:24 -05:00
Jim Blake
dad574d33a Merge branch 'develop' into feature/elk 2014-12-11 16:24:52 -05:00
Jim Blake
f339f1864f VIVO-863 get rid of GuardAgainstUnmigratedRDB
It was only useful for the transition from 1.6 to 1.7, and it was a problem when someone used a triple-store other than SDB.
2014-12-11 16:12:42 -05:00
Jim Blake
73b76a6e90 VIVO-933 Read PropertyConfig.n3 into an existing model, just once. 2014-12-11 15:51:59 -05:00
Jim Blake
d48d6f63ec Merge branch 'develop' into feature/fauxEditing 2014-12-10 17:41:37 -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
hudajkhan
05fe47e50a needed access to rdfservice in nyccsc 2014-12-10 12:36:37 -05:00
Tim Worrall
da9e244c18 Merge branch 'feature/fauxEditing' of https://github.com/vivo-project/Vitro into feature/fauxEditing 2014-12-09 13:16:57 -05:00
Tim Worrall
ee8300dccc No Jira issue. Faux property listing was not displaying all cases of a property where the labels were the same but the domains were different. 2014-12-09 13:16:20 -05:00
Jim Blake
5a54fa171b VIVO-825 do not allow access to APIs if the account is not in a valid state.
Before testing the password, test that the account is well-formed: first name, last name, email.
After testing the password, check to see whether a password change is required.
2014-12-09 12:26:49 -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
d1b07bcffc VIVO-766 This comparator is invalid under Java 8.
Because subclass/superclass is only a partial ordering, this breaks the contract for Comparator,
and throws an IllegalArgumentException under Java 8. In particular, for classes sub, super and other,
we have sub=other, sub<super, which should imply other<super, but instead other=super.

As far as I can determine, this sort is never used anyway, so there should be no impact in removing it.
PropertyInstanceDaoJena sorts these results again before using them, as does GroupedPropertyList.
2014-12-08 15:31:10 -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
Tim Worrall
b8cb95d252 VIVO-922: updates for new faux listing functionality. New controller, template and js file, updated web.xml and site admin page, and updates to the all.properties 2014-12-05 16:57:09 -05:00
Jim Blake
1c66271101 VIVO-778 Restructure the driver and connect the plumbing properly.
Replace PelletListener with BasicTBoxReasonerDriver, and associated classes.
Run the background thread from an ExecutorService.
Since nobody was using the FOREGROUND flag, and since its logic was flawed, skip it.

Make TBoxReasonerModule a module on the Application. Make the reasoner status available through the module.
Initialize it in startup_listeners.txt
Create a concrete class for PelletTBoxReasonerModule, and configure it in applicationSetup.n3

Get rid of PelletReasonerSetup.

Make it so the ExecutorService in BasicTBoxReasonerDriver uses a VitroBackgroundThread.,
2014-12-03 18:01:37 -05:00
Jim Blake
fb97bae6af VIVO-778 Connect the plumbing properly.
Make TBoxReasonerModule a module on the Application. Make the reasoner status available through the module.
Initialize it in startup_listeners.txt
Create a concrete class for PelletTBoxReasonerModule, and configure it in applicationSetup.n3

Get rid of PelletReasonerSetup.

Make it so the ExecutorService in BasicTBoxReasonerDriver uses a VitroBackgroundThread.,
2014-12-03 16:36:26 -05:00
Jim Blake
3d65a708b7 VIVO-778 Some renaming and moving. 2014-12-03 10:44:28 -05:00
Jim Blake
0c46f1d14e VIVO-778 Let the listener hold the change set. 2014-12-03 10:40:55 -05:00
Jim Blake
6bb8987d9d VIVO-778 Accumulate the TBox changes in a change set object. 2014-12-03 10:18:03 -05:00
Jim Blake
24bce9ff67 VIVO-778 Wild restructuring
Create TBoxChanges, createTBoxReasonerDriver, delete PelletListener, deal with repercussions all over.
2014-12-03 09:46:25 -05:00