Package com.clarkparsia.pellint.rdfxml

Examples of com.clarkparsia.pellint.rdfxml.RDFLints


    }
    OWLSyntaxChecker checker = new OWLSyntaxChecker();
   
    checker.setExcludeValidPunnings(options.getOption("exclude-valid-punning").getValueAsBoolean());
   
    RDFLints lints = checker.validate( rootModel );

    output( lints.toString() );

    if( m_OutputOntologyPath != null && !m_DoOWL ) {
      List<Statement> missingStmts = lints.getMissingStatements();
     
        rootModel.addAllStatementsWithExistingBNodesOnly( missingStmts );

        RDFModelWriter writer = new RDFModelWriter();
        writer.write( new FileOutputStream( new File( m_OutputOntologyPath ) ),
View Full Code Here


  protected void addStatement(Resource s, Property p, RDFNode o) {
    rdfModel.addStatement(ResourceFactory.createStatement(s, p, o));
  }

  protected RDFLints validate() {
    RDFLints lints = checker.validate(rdfModel);
   
    // System.out.println(lints);
   
    return lints;
  }
View Full Code Here

    }
    OWLSyntaxChecker checker = new OWLSyntaxChecker();
   
    checker.setExcludeValidPunnings(options.getOption("exclude-valid-punning").getValueAsBoolean());
   
    RDFLints lints = checker.validate( rootModel );

    output( lints.toString() );

    if( m_OutputOntologyPath != null && !m_DoOWL ) {
      List<Statement> missingStmts = lints.getMissingStatements();
     
        rootModel.addAllStatementsWithExistingBNodesOnly( missingStmts );

        RDFModelWriter writer = new RDFModelWriter();
        writer.writePretty( new FileOutputStream( new File( m_OutputOntologyPath ) ),
View Full Code Here

  public void testDatatypeEquivalentClass() {
    RDFModelReader modelReader = new RDFModelReader();
    RDFModel rdfModel = modelReader.read( TEST_438_DATA, false /* loadImports */ );
   
    OWLSyntaxChecker checker = new OWLSyntaxChecker();
    RDFLints lints = checker.validate( rdfModel );
   
    assertTrue( lints.isEmpty() )
  }
View Full Code Here

  protected void addStatement(Resource s, Property p, RDFNode o) {
    rdfModel.addStatement(ResourceFactory.createStatement(s, p, o));
  }

  protected RDFLints validate() {
    RDFLints lints = checker.validate(rdfModel);
   
    // System.out.println(lints);
   
    return lints;
  }
View Full Code Here

TOP

Related Classes of com.clarkparsia.pellint.rdfxml.RDFLints

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.