You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by Ian Dunlop <an...@apache.org> on 2018/02/06 11:46:39 UTC
CMS diff: Jena RDF/XML How-To
Clone URL (Committers only):
https://cms.apache.org/redirect?new=anonymous;action=diff;uri=http://jena.apache.org/documentation%2Fio%2Frdfxml_howto.mdtext
Ian Dunlop
Index: trunk/content/documentation/io/rdfxml_howto.mdtext
===================================================================
--- trunk/content/documentation/io/rdfxml_howto.mdtext (revision 1823266)
+++ trunk/content/documentation/io/rdfxml_howto.mdtext (working copy)
@@ -250,7 +250,7 @@
properties so that it behaves exactly as required in your application,
and then to do all subsequent I/O through it.
- Model m = Modelfactory.createDefaultModel();
+ Model m = ModelFactory.createDefaultModel();
RDFWriter writer = m.getRDFWriter();
m = null; // m is no longer needed.
writer.setErrorHandler(myErrorHandler);
@@ -342,7 +342,7 @@
data that uses unqualified RDF attributes such as "about" instead
of "rdf:about", then the following code is appropriate:
- Model m = Modelfactory.createDefaultModel();
+ Model m = ModelFactory.createDefaultModel();
RDFReader arp = m.getReader();
m = null; // m is no longer needed.
// initialize arp
@@ -379,7 +379,7 @@
InputStream in = ... ;
String baseURI = ... ;
- Model model = Modelfactory.createDefaultModel();
+ Model model = ModelFactory.createDefaultModel();
RDFReader r = model.getReader("RDF/XML");
r.setProperty("iri-rules", "strict") ;
r.setProperty("error-mode", "strict") ; // Warning will be errors.
Re: CMS diff: Jena RDF/XML How-To
Posted by ajs6f <aj...@apache.org>.
Committed, thank you!
ajs6f
> On Feb 6, 2018, at 11:46 AM, Ian Dunlop <an...@apache.org> wrote:
>
> Clone URL (Committers only):
> https://cms.apache.org/redirect?new=anonymous;action=diff;uri=http://jena.apache.org/documentation%2Fio%2Frdfxml_howto.mdtext
>
> Ian Dunlop
>
> Index: trunk/content/documentation/io/rdfxml_howto.mdtext
> ===================================================================
> --- trunk/content/documentation/io/rdfxml_howto.mdtext (revision 1823266)
> +++ trunk/content/documentation/io/rdfxml_howto.mdtext (working copy)
> @@ -250,7 +250,7 @@
> properties so that it behaves exactly as required in your application,
> and then to do all subsequent I/O through it.
>
> - Model m = Modelfactory.createDefaultModel();
> + Model m = ModelFactory.createDefaultModel();
> RDFWriter writer = m.getRDFWriter();
> m = null; // m is no longer needed.
> writer.setErrorHandler(myErrorHandler);
> @@ -342,7 +342,7 @@
> data that uses unqualified RDF attributes such as "about" instead
> of "rdf:about", then the following code is appropriate:
>
> - Model m = Modelfactory.createDefaultModel();
> + Model m = ModelFactory.createDefaultModel();
> RDFReader arp = m.getReader();
> m = null; // m is no longer needed.
> // initialize arp
> @@ -379,7 +379,7 @@
>
> InputStream in = ... ;
> String baseURI = ... ;
> - Model model = Modelfactory.createDefaultModel();
> + Model model = ModelFactory.createDefaultModel();
> RDFReader r = model.getReader("RDF/XML");
> r.setProperty("iri-rules", "strict") ;
> r.setProperty("error-mode", "strict") ; // Warning will be errors.
>