jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1499930 - in /jena/trunk/jena-core/src/main/java/com/hp/hpl/jena/ontology: OntModel.java impl/OntModelImpl.java
Date Fri, 05 Jul 2013 08:17:18 GMT
Author: andy
Date: Fri Jul  5 08:17:18 2013
New Revision: 1499930

URL: http://svn.apache.org/r1499930
Log:
Add writeAlll(out, lang) operations
s/N3/TURTLE/g in javadoc

Modified:
    jena/trunk/jena-core/src/main/java/com/hp/hpl/jena/ontology/OntModel.java
    jena/trunk/jena-core/src/main/java/com/hp/hpl/jena/ontology/impl/OntModelImpl.java

Modified: jena/trunk/jena-core/src/main/java/com/hp/hpl/jena/ontology/OntModel.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-core/src/main/java/com/hp/hpl/jena/ontology/OntModel.java?rev=1499930&r1=1499929&r2=1499930&view=diff
==============================================================================
--- jena/trunk/jena-core/src/main/java/com/hp/hpl/jena/ontology/OntModel.java (original)
+++ jena/trunk/jena-core/src/main/java/com/hp/hpl/jena/ontology/OntModel.java Fri Jul  5 08:17:18
2013
@@ -1559,7 +1559,7 @@ public interface OntModel
      * </p>
      * <p>The language in which to write the model is specified by the
      * <code>lang</code> argument.  Predefined values are "RDF/XML",
-     * "RDF/XML-ABBREV", "N-TRIPLE" and "N3".  The default value,
+     * "RDF/XML-ABBREV", "N-TRIPLE" and "TURTLE".  The default value,
      * represented by <code>null</code> is "RDF/XML".</p>
      * @param writer The output writer
      * @param lang The output language
@@ -1579,7 +1579,7 @@ public interface OntModel
      * </p>
      * <p>The language in which to write the model is specified by the
      * <code>lang</code> argument.  Predefined values are "RDF/XML",
-     * "RDF/XML-ABBREV", "N-TRIPLE" and "N3".  The default value,
+     * "RDF/XML-ABBREV", "N-TRIPLE" and "TURTLE".  The default value,
      * represented by <code>null</code>, is "RDF/XML".</p>
      * @param writer The output writer
      * @param base The base URI for relative URI calculations.
@@ -1599,7 +1599,7 @@ public interface OntModel
      * </p>
      * <p>The language in which to write the model is specified by the
      * <code>lang</code> argument.  Predefined values are "RDF/XML",
-     * "RDF/XML-ABBREV", "N-TRIPLE" and "N3".  The default value is
+     * "RDF/XML-ABBREV", "N-TRIPLE" and "TURTLE".  The default value is
      * represented by <code>null</code> is "RDF/XML".</p>
      * @param out The output stream to which the XML will be written
      * @return This model
@@ -1616,7 +1616,7 @@ public interface OntModel
      * </p>
      * <p>The language in which to write the model is specified by the
      * <code>lang</code> argument.  Predefined values are "RDF/XML",
-     * "RDF/XML-ABBREV", "N-TRIPLE" and "N3".  The default value,
+     * "RDF/XML-ABBREV", "N-TRIPLE" and "TURTLE".  The default value,
      * represented by <code>null</code>, is "RDF/XML".</p>
      * @param out The output stream to which the RDF is written
      * @param lang The output language
@@ -1634,7 +1634,7 @@ public interface OntModel
      * </p>
      * <p>The language in which to write the model is specified by the
      * <code>lang</code> argument.  Predefined values are "RDF/XML",
-     * "RDF/XML-ABBREV", "N-TRIPLE" and "N3".  The default value,
+     * "RDF/XML-ABBREV", "N-TRIPLE" and "TURTLE".  The default value,
      * represented by <code>null</code>, is "RDF/XML".</p>
      * @param out The output stream to which the RDF is written
      * @param base The base URI to use when writing relative URI's. <code>null</code>
@@ -1655,12 +1655,12 @@ public interface OntModel
      * </p>
      * <p>The language in which to write the model is specified by the
      * <code>lang</code> argument.  Predefined values are "RDF/XML",
-     * "RDF/XML-ABBREV", "N-TRIPLE" and "N3".  The default value,
+     * "RDF/XML-ABBREV", "N-TRIPLE" and "TURTLE".  The default value,
      * represented by <code>null</code>, is "RDF/XML".</p>
      * @param writer The output writer
+     * @param lang The language in which the RDF should be written
      * @param base The base URI for relative URI calculations.
      * <code>null</code> means use only absolute URI's.
-     * @param lang The language in which the RDF should be written
      * @return This model
      */
     public Model writeAll( Writer writer, String lang, String base );
@@ -1673,13 +1673,47 @@ public interface OntModel
      * </p>
      * <p>The language in which to write the model is specified by the
      * <code>lang</code> argument.  Predefined values are "RDF/XML",
-     * "RDF/XML-ABBREV", "N-TRIPLE" and "N3".  The default value,
+     * "RDF/XML-ABBREV", "N-TRIPLE" and "TURTLE".  The default value,
      * represented by <code>null</code>, is "RDF/XML".</p>
      * @param out The output stream to which the RDF is written
+     * @param lang The language in which the RDF should be written
      * @param base The base URI to use when writing relative URI's. <code>null</code>
      * means use only absolute URI's.
-     * @param lang The language in which the RDF should be written
      * @return This model
      */
     public Model writeAll( OutputStream out, String lang, String base );
+    
+    /**
+     * <p>Write a serialized representation of all of the contents of the model,
+     * including inferred statements and statements imported from other
+     * documents.  To write only the data asserted in the base model, use
+     * {@link #write( Writer, String ) write}.
+     * It is often better to use an OutputStream rather than a Writer,
+     * since this will avoid character encoding errors.
+     * </p>
+     * <p>The language in which to write the model is specified by the
+     * <code>lang</code> argument.  Predefined values are "RDF/XML",
+     * "RDF/XML-ABBREV", "N-TRIPLE" and "TURTLE".  The default value,
+     * represented by <code>null</code>, is "RDF/XML".</p>
+     * @param writer The output writer
+     * @param lang The language in which the RDF should be written
+     * @return This model
+     */
+    public Model writeAll( Writer writer, String lang );
+
+    /**
+     * <p>Write a serialized representation of all of the contents of the model,
+     * including inferred statements and statements imported from other
+     * documents.  To write only the data asserted in the base model, use
+     * {@link #write( OutputStream, String ) write}.
+     * </p>
+     * <p>The language in which to write the model is specified by the
+     * <code>lang</code> argument.  Predefined values are "RDF/XML",
+     * "RDF/XML-ABBREV", "N-TRIPLE" and "TURTLE".  The default value,
+     * represented by <code>null</code>, is "RDF/XML".</p>
+     * @param out The output stream to which the RDF is written
+     * @param lang The language in which the RDF should be written
+     * @return This model
+     */
+    public Model writeAll( OutputStream out, String lang );
 }

Modified: jena/trunk/jena-core/src/main/java/com/hp/hpl/jena/ontology/impl/OntModelImpl.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-core/src/main/java/com/hp/hpl/jena/ontology/impl/OntModelImpl.java?rev=1499930&r1=1499929&r2=1499930&view=diff
==============================================================================
--- jena/trunk/jena-core/src/main/java/com/hp/hpl/jena/ontology/impl/OntModelImpl.java (original)
+++ jena/trunk/jena-core/src/main/java/com/hp/hpl/jena/ontology/impl/OntModelImpl.java Fri
Jul  5 08:17:18 2013
@@ -2650,6 +2650,15 @@ public class OntModelImpl extends ModelC
         return super.write( out, lang, base );
     }
 
+    @Override
+    public Model writeAll( Writer writer, String lang ) {
+        return super.write( writer, lang );
+    }
+
+    @Override
+    public Model writeAll( OutputStream out, String lang) {
+        return super.write( out, lang );
+    }
 
     // Implementation of inf model interface methods
 



Mime
View raw message