Package org.ontoware.rdf2go.model

Examples of org.ontoware.rdf2go.model.Syntax


    FileInputStream fis;
    File f = new File(filename);
    try {
      fis = new FileInputStream(f);

      Syntax syntax = Syntax.forFileName(filename);
   
      try {
        m.readFrom(fis, syntax);
      } catch (ModelRuntimeException e) {
        throw new RuntimeException(e);
View Full Code Here


    writeVocab();
  }
 
  private void loadOnt() throws Exception {
    // read
    Syntax syntax = RDFTool.guessSyntax(this.inputRdfFile.toString());
    this.model = RDF2Go.getModelFactory().createModel(Reasoning.none);
    this.model.open();
    System.out.println("reading from " + this.inputRdfFile.getAbsolutePath() + " in format "
            + syntax);
    Reader reader = new BufferedReader(new FileReader(this.inputRdfFile));
View Full Code Here

                    if (srcNode != null) {
                        node = (Node) xPath.evaluate("@type", srcNode, XPathConstants.NODE);
                        String srcType = node.getNodeValue();
                        if (srcType.equals("xslt")) {
                            String rdfFormat = "rdfxml";
                            Syntax rdfSyntax = Syntax.RdfXml;
                            node =
                                (Node)xPath.evaluate("@syntax", srcNode,
                                XPathConstants.NODE);
                            if (node != null) {
                                rdfFormat = node.getNodeValue();
View Full Code Here

TOP

Related Classes of org.ontoware.rdf2go.model.Syntax

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.