Carrie, if you plan to process RDF data locally (in flowfile), creating a
custom processor based off Apache Jena shouldn't be too difficult.
Otherwise, as Brian mentioned, you could use a HTTP processor to query
remote SPARQL endpoints.

On Fri, Feb 16, 2024 at 9:24 AM Brian Ghigiarelli <[email protected]>
wrote:

> Hi Carrie,
>
> There's no dedicated SPARQL processor that comes out of the box with Apache
> NiFi. The closest I'm seeing is an outside effort from ~5 years ago on a
> much older version (NiFi 1.9.2) at
> https://github.com/QROWD/nifi-sparql-integrate-bundle. It may be a good
> starting point to upgrade for direct use in NiFi 2.x, except there's no
> license provided.
>
> If you're looking to execute SPARQL queries on a service that provides a
> SPARQL Endpoint, you could use the InvokeHTTP processor. For example,
> sending a GET request to
>
> https://query.wikidata.org/bigdata/namespace/wdq/sparql?query=${SPARQL:urlEncode()}
> with an incoming FlowFile attribute named "SPARQL" that contains the query.
>
> Hope that helps!
>
> Brian Ghigiarelli
> Datavolo.io
>
> On Thu, Feb 15, 2024 at 5:47 PM Bass, Carrie A [US] (SP) <
> [email protected]> wrote:
>
> > Hello,
> >
> > I hope this message finds you well. I am currently exploring the
> > capabilities of Apache NiFi and am interested in incorporating SPARQL
> > queries into my data flow. Could you kindly confirm if there is a
> dedicated
> > SPARQL processor available in Apache NiFi, or if there are alternative
> > methods recommended for executing SPARQL queries within the NiFi
> > environment?
> >
> > Your assistance and guidance on this matter would be highly appreciated.
> >
> > Thank you in advance,
> >
> > Carrie Bass  |  Sr. Principal Data Scientist
> > Northrop Grumman  |  Space Systems
> > O: 321-674-3250  |  C: 321-304-7977  |   [email protected]<mailto:
> > [email protected]>
> >
> >
>

Reply via email to