diff options
Diffstat (limited to 'src/org')
| -rw-r--r-- | src/org/semanticweb/karma2/model/cqparser/ConjunctiveQueryWalker.java | 2 | ||||
| -rw-r--r-- | src/org/semanticweb/simpleETL/SimpleETL.java | 13 |
2 files changed, 7 insertions, 8 deletions
diff --git a/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQueryWalker.java b/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQueryWalker.java index f95ac12..f10b761 100644 --- a/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQueryWalker.java +++ b/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQueryWalker.java | |||
| @@ -67,7 +67,7 @@ public class ConjunctiveQueryWalker { | |||
| 67 | assert (prefixList.getType() == ConjunctiveQueryLexer.PREFIX_LIST); | 67 | assert (prefixList.getType() == ConjunctiveQueryLexer.PREFIX_LIST); |
| 68 | Prefixes prefixes = walkPrefixList(prefixList); | 68 | Prefixes prefixes = walkPrefixList(prefixList); |
| 69 | CommonTree rulebody = iterator.next(); | 69 | CommonTree rulebody = iterator.next(); |
| 70 | assert (prefixList.getType() == ConjunctiveQueryLexer.RULE); | 70 | assert (rulebody.getType() == ConjunctiveQueryLexer.RULE); |
| 71 | return walkRuleNode(rulebody, prefixes); | 71 | return walkRuleNode(rulebody, prefixes); |
| 72 | 72 | ||
| 73 | } | 73 | } |
diff --git a/src/org/semanticweb/simpleETL/SimpleETL.java b/src/org/semanticweb/simpleETL/SimpleETL.java index 8dcd87a..5907b7b 100644 --- a/src/org/semanticweb/simpleETL/SimpleETL.java +++ b/src/org/semanticweb/simpleETL/SimpleETL.java | |||
| @@ -1,16 +1,16 @@ | |||
| 1 | package org.semanticweb.simpleETL; | 1 | package org.semanticweb.simpleETL; |
| 2 | import java.io.File; | ||
| 3 | import java.io.FileInputStream; | ||
| 4 | import java.io.FileOutputStream; | ||
| 5 | import java.util.regex.Pattern; | ||
| 6 | 2 | ||
| 7 | import org.openrdf.rio.RDFParser; | 3 | import org.openrdf.rio.RDFParser; |
| 8 | import org.openrdf.rio.RDFWriter; | 4 | import org.openrdf.rio.RDFWriter; |
| 9 | import org.openrdf.rio.rdfxml.RDFXMLParser; | 5 | import org.openrdf.rio.rdfxml.RDFXMLParser; |
| 10 | import org.openrdf.rio.turtle.TurtleWriter; | 6 | import org.openrdf.rio.turtle.TurtleWriter; |
| 11 | |||
| 12 | import uk.ac.ox.cs.pagoda.util.Utility; | 7 | import uk.ac.ox.cs.pagoda.util.Utility; |
| 13 | 8 | ||
| 9 | import java.io.File; | ||
| 10 | import java.io.FileInputStream; | ||
| 11 | import java.io.FileOutputStream; | ||
| 12 | import java.util.regex.Pattern; | ||
| 13 | |||
| 14 | public class SimpleETL { | 14 | public class SimpleETL { |
| 15 | 15 | ||
| 16 | protected final static String m_prefix_LUBM = "http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#"; | 16 | protected final static String m_prefix_LUBM = "http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#"; |
| @@ -67,8 +67,7 @@ public class SimpleETL { | |||
| 67 | finally { | 67 | finally { |
| 68 | fos.close(); | 68 | fos.close(); |
| 69 | } | 69 | } |
| 70 | Utility.logInfo("SimpleETL rewriting DONE", | 70 | Utility.logInfo("SimpleETL rewriting DONE: additional ontology data is saved in " + m_fileToExport + "."); |
| 71 | "additional ontology data is saved in " + m_fileToExport + "."); | ||
| 72 | } | 71 | } |
| 73 | 72 | ||
| 74 | public String getExportedFile() { | 73 | public String getExportedFile() { |
