Yep, or one of those helper methods. JENA does already contain a lots of stuff, one has only to find it somehow

On 19.07.21 13:42, Martynas Jusevičius wrote:
https://jena.apache.org/documentation/javadoc/jena/org/apache/jena/util/ResourceUtils.html#reachableClosure(org.apache.jena.rdf.model.Resource)

On Mon, Jul 19, 2021 at 1:39 PM Roland Bailly
<[email protected]> wrote:
Thank you for your swift answer.

Yes exactly. The idea is to get the sub graph from a given a node.


-----Original Message-----
From: LB <[email protected]>
Sent: lundi 19 juillet 2021 13:27
To: [email protected]
Subject: Re: Retrieve all sub resources from one resource in one model

--- This is an incoming mail from an EXTERNAL DOMAIN. Please verify sender 
before you open attachments or access links. ---


what is a "sub-resource" in RDF? Are you talking about CBDs? Like what SPARQL 
DESCRIBE returns (to some extend)?

On 19.07.21 13:18, Roland Bailly wrote:
Hello,

Currently I am working with a huge RDF file.
I would like to retrieve all sub resources from one resource and put everything 
in one model.

The idea with that is to convert the model to JSON LD FRAMING to create a java 
object.
I don't want to convert my huge RDF file in JSON LD, but only the part I need.
With Jena I can already retrieve my root object with model.getResource("id") 
but it doesn't contain the sub resources.

Please, do you know how to retrieve the subresources ?

Roland Bailly
Analyst - Programmer

Email:

   [email protected]

Mobil:

04 97 28 38 16

Fax:

+32 2 774 88 31


[http://www.arhs-group.com/wp-content/uploads/2017/03/arhs-dev-be.png]


Woluwedal 30
B-1932 Zaventem
www.arhs-dev-be.com<http://www.arhs-dev-be.com/>





Reply via email to