-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Add support to create RDF* statements #305
Comments
@pajoma I'm sorry, but this project has nothing to do with RDF4J. Report the bug to RDF4J. Please feel free to re-open if there is something I'm missing. |
Sorry for the confusion, I just mentioned RDF4J as example. The problem lies within the RDF Api of Titanium (RDFNQuads and Rdf Resource are Titanium Terms, nothing related to RDF4J) |
Please, can you be more specific then? Why you cannot use the existing RDF API? |
Sure. RDF statements are triples in the form RDF* allows for expressing statements about statements (in subjects or objects):
A valid triple (let's forget about the graph for now) is therefore:
You typically see this reflected in the class hierarchy, see RDFLib, Eclipse RDF4J or Apache Jena In my application, I want to expose my triples as JSON-LD documents with RDF-Star statements. The implementation follows this pattern: for each statement in the result model:
And then I build a JsonLd Document Document document = RdfDocument.of(myRdfDataset);
JsonArray jsonValues = JsonLd.fromRdf(document).options(myOptions).get();
JsonDocument jsonDocument = JsonDocument.of(jsonValues);
JsonObject jsonObject = JsonLd.frame(jsonDocument, myContectUri).options(myOptions).get(); The issue: I would expect the following class structure:
Only then is it possible to create a new RDFNQuad with a triple either as subject or object (this should also include a check that it is actually a triple, and not another nquad) |
should be done after/together with/ #300 |
Is your feature request related to a problem? Please describe.
I am using RDF4J as backend with RDF* statements in the form
<triple> predicate value
.I am unable to convert these statements in RDFNQuads, since the subject is expected to be a RdfResource
Describe the solution you'd like
The RdfTriple interface could extend the RdfResource (example from RDF4J), to create RDFNQuads with RDF* semantics.
Describe alternatives you've considered
Not sure, for now I am filtering all RDF* statements.
The text was updated successfully, but these errors were encountered: