Skip to content
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

Using proof-plugin as dependency to find antecedents for another plugin #9

Open
andrea-corradetti opened this issue May 24, 2023 · 0 comments

Comments

@andrea-corradetti
Copy link

andrea-corradetti commented May 24, 2023

Hi, I hope this isn't out of scope for an Issue but I wasn't sure how to reach any active developer.

I'm developing a graphdb plugin that makes use of the StatementListener interface.

I'm interested in using the proof plugin to find the antecedents of a statement given subject, predicate, object and context as long ids.
The documentation seems to focus on using SPARQL but I'd like to do it in code inside the StatementAdded function:

override fun statementAdded(
       subject: Long,
       predicate: Long,
       obj: Long,
       context: Long,
       isExplicit: Boolean,
       pluginConnection: PluginConnection
   ): Boolean

Is there a simple way of doing this that I'm not seeing? Is this plugin intended for such use?

This is the piece of documentation that prompted me to ask the question

@andrea-corradetti andrea-corradetti changed the title Using proof-plugin as dependency to find antecedents in my own plugin Using proof-plugin as dependency to find antecedents for another plugin May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant