You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JCL-306: added example for working with nested Solid resources (#404)
* added example for working with nexted Solid resources
* further distinguish between non RDF and RDF resources
* Update src/site/apt/data-modeling/multiple-resources.apt.vm
Co-authored-by: Aaron Coburn <aaronc@inrupt.com>
Your inner class (<<<Node>>> in this example) will have access to a variety of functions
98
-
to aid in mapping between the underlying RDF Graph and your Java type. {{{https://javadoc.io/doc/com.inrupt/inrupt-rdf-wrapping-commons/latest/com/inrupt/rdf/wrapping/commons/WrapperBlankNodeOrIRI.html}These methods}} are summarized in the <<<inrupt-rdf-wrapping-commons>>> Javadocs.
99
-
100
-
Similarly, the built-in {{{https://javadoc.io/doc/com.inrupt/inrupt-rdf-wrapping-commons/latest/com/inrupt/rdf/wrapping/commons/TermMappings.html}TermMappings}}
101
-
and {{{https://javadoc.io/doc/com.inrupt/inrupt-rdf-wrapping-commons/latest/com/inrupt/rdf/wrapping/commons/ValueMappings.html}ValueMappings}}
102
-
are described in the {{{https://javadoc.io/doc/com.inrupt/inrupt-rdf-wrapping-commons/latest/com/inrupt/rdf/wrapping/commons/package-summary.html}Javadocs}} for the <<<inrupt-rdf-wrapping-commons>>> library.
103
-
104
-
* 3. Connect your public methods to the wrapper node
105
-
106
-
Now you are ready to link your public methods to the methods from your inner class.
Let's work with an example to describe the data model options.
168
25
169
-
// Update the playlist in your storage
170
-
client.update(playlist);
171
-
}
172
-
}
173
-
}
174
-
+---
26
+
We want to model a Book Library on the Pod:
27
+
* One Solid Resource - we have a Book Library Solid Resource which contains all the book descriptions part of that library it one Solid Resource or
28
+
* Multiple Solid Resources - we have a Book Library Solid Container which holds more Solid Resources. Each Resource, in turn, contains the description of only one Book.
The solution involves working with domain-specific type such as <<<SolidContainer>>> and <<<SolidResource>>>.
6
+
7
+
* Working with Solid Containers
8
+
9
+
We have to access the contained resources of a Solid Container. We assume that all Solid RDF Resources are Books.
10
+
11
+
You can use a wrapper class (describe on the {{{./one-resource.html}One Solid Resource}} page) with the high-level Solid client, mapping data seamlessly between your Java application and an RDF resource.
Your inner class (<<<Node>>> in this example) will have access to a variety of functions
86
+
to aid in mapping between the underlying RDF Graph and your Java type. {{{https://docs.inrupt.com/developer-tools/api/java/inrupt-client/latest/com/inrupt/rdf/wrapping/commons/package-summary.html}These methods}} are summarized in the <<<inrupt-rdf-wrapping-commons>>> Javadocs.
87
+
88
+
Similarly, the built-in {{{https://docs.inrupt.com/developer-tools/api/java/inrupt-client/latest/com/inrupt/rdf/wrapping/commons/TermMappings.html}TermMappings}}
89
+
and {{{https://docs.inrupt.com/developer-tools/api/java/inrupt-client/latest/com/inrupt/rdf/wrapping/commons/ValueMappings.html}ValueMappings}}
90
+
are described in the {{{https://docs.inrupt.com/developer-tools/api/java/inrupt-client/latest/com/inrupt/rdf/wrapping/commons/package-summary.html}Javadocs}} for the <<<inrupt-rdf-wrapping-commons>>> library.
91
+
92
+
* 3. Connect your public methods to the wrapper node
93
+
94
+
Now you are ready to link your public methods to the methods from your inner class.
0 commit comments