marklogic-rdf4j | Support for MarkLogic exposed inthe rdf4j idiom | Data Manipulation library
kandi X-RAY | marklogic-rdf4j Summary
kandi X-RAY | marklogic-rdf4j Summary
The markLogic-rdf4j API is a RDF4J Repository implementation exposing MarkLogic semantic features.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Entry point
- Returns number of triples in given contexts
- Executes an update query
- Executes a SPARQL query with an InputStreamHandle
- Main entry point
- Start timer task
- Load triples from database
- Exports the resource to the model
- Parse the configuration
- Package - private for testing
- Loads the properties file and initializes them
- Entry point to the example
- Create a Repository object
- Check to see if the cache should be flushed
- Flushes the triples to the server
- Flush triples to the server
- Entry point for testing
- Lazily initialize internal structures
marklogic-rdf4j Key Features
marklogic-rdf4j Examples and Code Snippets
dependencies {
compile group: 'com.marklogic', name: 'marklogic-rdf4j', version: '1.2.2'
}
com.marklogic
marklogic-rdf4j
1.2.2
mvn -Dmaven.test.skip=true -Dmaven.javadoc.skip=true deploy
compile('com.marklogic:marklogic-client-api:4.1.2')
gradle marklogic-rdf4j:mlDeploy
gradle marklogic-rdf4j:test
gradle marklogic-rdf4j:install
gradle build -x test
Community Discussions
Trending Discussions on marklogic-rdf4j
QUESTION
I would like to evaluate a SPARQL query against a limited document scope, which is based on a triple range query. Only embedded triples contained by documents which match a specific triple pattern should be part of the SPARQL evaluation scope. I'm using the Java SDK (via marklogic-rdf4j) to evaluate the SPARQL query. We're only using embedded/unmanaged triples.
I'm aware of the possibility to attach a structured query definition to a SPARQL query (by calling MarkLogicQuery::setConstrainingQueryDefinition), but the structured query syntax does not support triple-range-query constraints.
Is there any way to apply one or more triple-range-query constraints in a structured query definition? Or are there better alternatives?
...ANSWER
Answered 2019-Sep-20 at 07:26Support for triple-range-query in structured queries has been requested before. I added your case to the ticket.
In the mean time you might get away with using a custom constraint. Me and a colleague put this together:
https://github.com/patrickmcelwee/triple-range-constraint/blob/master/triple-range-constraint.xqy
HTH!
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install marklogic-rdf4j
The markLogic-rdf4j API is available via Maven Central.
This section describes how to build and test marklogic-rdf4j API from develop branch. marklogic-rdf4j depends on MarkLogic Java API Client v4.1.2 and should pull down this version from maven central.
Clone or download MarkLogic Java API client develop branch.
Build and deploy Java API client to local maven repo.
Edit marklogic-RDF4J/build.gradle to use that build
Clone or download marklogic-rdf4j master branch.
Review marklogic-rdf4j/gradle.properties which defines test deployment settings.
Run gradle target that provisions MarkLogic with everything required (database,REST server,etc.).
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page