-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce time required to prepare for ROBOT query/verify #666
Conversation
…g time. Implement direct triple conversion to avoid intermediate Turtle string.
This is great! Issue 666 ftw 😈😈😈 I assume the tests were with in memory Jena - does this affect things when the tdb options is set? |
@cmungall I haven't tested the disk-based TDB. It looks like a separate code path to me. @beckyjackson am I right? |
Thanks @balhoff! I want to test this on some of my ontology projects. I'll try to do that soon. |
I haven't yet had time for this -- I sincerely apologize. @ontodev/robot-team Everyone is welcome to test this using this JAR: https://build.obolibrary.io/job/ontodev/job/robot/job/direct-rdf/lastSuccessfulBuild/artifact/bin/robot.jar |
Sorry for the delay in response. Yes, the I tested this on DOID and it works great - a query that previously took 20 seconds only took 9 seconds 😄 I also tested this with MRO and a query that previously took 29 seconds took 14 seconds, and the results were essentially the same. The only (tiny) difference was that a |
That seems understandable for different backends. As far as I know you can't guarantee an ordering within GROUP_CONCAT. |
Thanks @balhoff! Sorry again about the delay -- we're even busier than usual lately. |
No problem, thanks!! |
This makes two changes:
TDBFactory.createDataset()
,DatasetFactory.createGeneral()
is used. This eliminates a large amount of time spent initializing the Dataset (240 seconds in the case of the GO build on my laptop).Behavior changes worth noting:
I had to make a change to one test. In a SPARQL query, when specifying a named graph representing an ontology in the import chain, you need to use
FROM
instead ofFROM NAMED
. This is how I would have expected it to work in the first place, and I prefer the new behavior (in my opinionFROM NAMED
is super confusing). I'm not sure if this impacts anyone. Neither was documented before.Method signatures with regard to checked exceptions have changed. Will this be a problem? If so I can catch and wrap those exceptions. (UPDATE—I saw that Travis failed; I wrapped the exceptions and now it passes.)
docs/
have been added/updatedtests have been added/updated
mvn verify
says all tests passmvn site
says all JavaDocs correctCHANGELOG.md
has been updated