chenejac / VIVOTestMigrationJIRANotClosed

0 stars 0 forks source link

VIVO-1698: Add FAST vocabulary lookup to VIVO #124

Open chenejac opened 5 years ago

chenejac commented 5 years ago

Don Elsborg (Migrated from VIVO-1698) said:

OpenVIVO has a FAST vocabulary lookup service.

[~accountid:70121:808d5a90-2466-4d5d-ab89-ba021388469d] would like to see this in 1.11

Her steps are below and Huda confirmed them:

 Based on my discussion with @Huda Khan looks like these two files: [https://github.com/OpenVIVO/VIVO/tree/develop/installer/webapp/src/main/java/edu/cornell/mannlib/semservices/service/impl] need to be copied to this location: [https://github.com/vivo-project/VIVO/tree/develop/api/src/main/java/edu/cornell/mannlib/semservices/service/impl]After that only the FAST related lines from here need to be copied to the same file in VIVO. [https://github.com/OpenVIVO/VIVO/blob/develop/api/src/main/java/edu/cornell/mannlib/vitro/webapp/utils/ConceptSearchService/ConceptSearchServiceUtils.java]

chenejac commented 5 years ago

Don Elsborg said:

It appears that RiotReader.createParserNTriples is deprecated in Jena 3.1.1

see line: [https://github.com/OpenVIVO/VIVO/blob/ffe9d6144015678670f73c7283966e28b029e435/installer/webapp/src/main/java/edu/cornell/mannlib/semservices/service/impl/FASTSearch.java#L31]

LangRIOT parser = RiotReader.createParserNTriples(in, new StreamRDFBase() {

It looks like the proper command to use is: RDFDataMgr.parse

So far I haven't got this running.

Latest progress can be seen at:

[https://github.com/delsborg/Vitro/tree/vitro-1698]

[https://github.com/delsborg/VIVO/tree/vivo-1698]

 

The challenge I'm facing is this line: [https://github.com/vivo-project/VIVO/compare/develop...delsborg:vivo-1698#diff-55e190cda50bbb2d529627ea4fb98623R33] and mapping the functionality of the old createParserNTriples to the new parser. I imagine this is due to lack of in depth java knowledge and the jena libraries.