Skip to content

Commit 171b57d

Browse files
committed
cleanup some mistaken javadocs
(cherry picked from commit 51f0561)
1 parent fe0b3aa commit 171b57d

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/main/java/com/marklogic/client/semantics/GraphManager.java

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
import com.marklogic.client.semantics.Capability;
3232

3333
/**
34-
* <p>A manager for CRUD operations on semantic graphs which reside in MarkLogic Server.</p>
34+
* <p>A manager for CRUD operations on semantic graphs which reside in
35+
* MarkLogic Server.</p>
3536
*
3637
* <p>For example:</p>
3738
*
@@ -44,36 +45,38 @@
4445
* like so:</p>
4546
*
4647
* <pre> GraphManager graphMgr = databaseClient.newGraphManager();
47-
* FileHandle fileHandle = new FileHandle(new File("example.ttl")).withMimetype(RDFMimeTypes.TURTLE);
48+
* FileHandle fileHandle = new FileHandle(new File("example.ttl")).withMimetype(RDFMimeTypes.NTRIPLES);
4849
* graphMgr.write("myExample/graphUri", fileHandle);
4950
* </pre>
5051
*
5152
* <p>Then you could add another triple to the graph like so:</p>
5253
*
5354
* <pre> StringHandle stringHandle = new StringHandle()
5455
* .with("&lt;http://example.org/subject2&gt; &lt;http://example.org/predicate2&gt; &lt;http://example.org/object2&gt; .")
55-
* .withMimetype(RDFMimeTypes.TURTLE);
56+
* .withMimetype(RDFMimeTypes.NTRIPLES);
5657
* graphMgr.merge("myExample/graphUri", stringHandle);
5758
* </pre>
5859
*
5960
* <p>Then you read the graph from the database into turtle syntax into a
6061
* variable "triples" like so:</p>
6162
*
6263
* <pre> String triples = graphMgr.read("myExample/graphUri",
63-
* new StringHandle().withMimetype(RDFMimeTypes.TURTLE).get());
64+
* new StringHandle().withMimetype(RDFMimeTypes.NTRIPLES)).get();
6465
* </pre>
6566
*
66-
* <p>You could simplify these examples if you first set the default mimetype so you don't have to call setMimetype on each handle. That also enables you to use the *As convenience methods:</p>
67+
* <p>You could simplify these examples if you first set the default mimetype
68+
* so you don't have to call setMimetype on each handle. That also enables you
69+
* to use the *As convenience methods:</p>
6770
*
68-
* <pre> graphMgr.setDefaultMimetype(RDFMimeTypes.TURTLE);
71+
* <pre> graphMgr.setDefaultMimetype(RDFMimeTypes.NTRIPLES);
6972
* String triples = graphMgr.readAs("myExample/graphUri", String.class);
7073
* </pre>
7174
*
7275
* <p>If you need to limit access to a graph you can set the permissions:</p>
7376
*
7477
* <pre> graphMgr.writePermissions("myExample/graphUri",
7578
* graphMgr.permission("example_manager", Capability.READ)
76-
* .permission("example_manager", Capability.WRITE));
79+
* .permission("example_manager", Capability.UPDATE));
7780
* </pre>
7881
*
7982
* <p>Permissions can also be added with {@link #mergePermissions
@@ -110,7 +113,7 @@ public interface GraphManager {
110113
* <p>Example:</p>
111114
* <pre> StringHandle stringHandle = new StringHandle()
112115
* .with("&lt;http://example.org/subject2&gt; &lt;http://example.org/predicate2&gt; &lt;http://example.org/object2&gt; .")
113-
* .withMimetype(RDFMimeTypes.TURTLE);
116+
* .withMimetype(RDFMimeTypes.NTRIPLES);
114117
* graphMgr.merge(DEFAULT_GRAPH, stringHandle);</pre>
115118
*/
116119
public static String DEFAULT_GRAPH = "com.marklogic.client.semantics.GraphManager.DEFAULT_GRAPH";

0 commit comments

Comments
 (0)