Package com.clarkparsia.pellet.datatypes

Examples of com.clarkparsia.pellet.datatypes.DatatypeReasonerImpl


    nodes = new HashMap<ATermAppl, Node>();
    nodeList = new ArrayList<ATermAppl>();
    clash = null;
    assertedClashes = new HashSet<Clash>();
    doExplanation = false;
    dtReasoner = new DatatypeReasonerImpl();
    keepLastCompletion = false;

    setBranch( DependencySet.NO_BRANCH );
    branches = new ArrayList<Branch>();
    setDisjBranchStats( new HashMap<ATermAppl, int[]>() );
View Full Code Here


  @Test
  public void testBuiltinDatatypesWithCardinalityRestriction() {
    String ns = "urn:test:";

    DatatypeReasoner dtReasoner = new DatatypeReasonerImpl();
    for( ATermAppl uri : dtReasoner.listDataRanges() ) {
      OntModel model = ModelFactory.createOntologyModel( PelletReasonerFactory.THE_SPEC );
      DatatypeProperty prop = model.createDatatypeProperty( ns + "prop" );
      Resource datatype = model.createResource( uri.getName() );
      prop.addRange( datatype );
      OntClass C = model.createClass( ns + "C" );
View Full Code Here

    nodes = new HashMap<ATermAppl, Node>();
    nodeList = new ArrayList<ATermAppl>();
    clash = null;
    assertedClashes = new HashSet<Clash>();
    doExplanation = false;
    dtReasoner = new DatatypeReasonerImpl();
    keepLastCompletion = false;

    setBranch( DependencySet.NO_BRANCH );
    branches = new ArrayList<Branch>();
    setDisjBranchStats( new HashMap<ATermAppl, int[]>() );
View Full Code Here

    assertFalse(reasoner.isSatisfiable(singleton(x), Collections.<Literal, Set<Literal>> emptyMap()));
  }

  @Before
  public void reset() {
    reasoner = new DatatypeReasonerImpl();
    abox = new ABox(null);
  }
View Full Code Here

  @Test
  public void testBuiltinDatatypesWithCardinalityRestriction() {
    String ns = "urn:test:";

    DatatypeReasoner dtReasoner = new DatatypeReasonerImpl();
    for( ATermAppl uri : dtReasoner.listDataRanges() ) {
      OntModel model = ModelFactory.createOntologyModel( PelletReasonerFactory.THE_SPEC );
      DatatypeProperty prop = model.createDatatypeProperty( ns + "prop" );
      Resource datatype = model.createResource( uri.getName() );
      prop.addRange( datatype );
      OntClass C = model.createClass( ns + "C" );
View Full Code Here

    m_OWLEntities.addDatatype( RDFS.Literal );
   
    // Fixes #457
    m_OWLEntities.addDatatype( ResourceFactory.createResource("http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral"));
   
    for( ATermAppl uri : new DatatypeReasonerImpl().listDataRanges() ) {
      m_OWLEntities.addDatatype( ResourceFactory.createResource( uri.getName() ) );
    }

    m_Lists = CollectionUtil.makeMap();
    m_Lists.put( RDF.nil, CollectionUtil.<RDFNode> makeList() );
View Full Code Here

TOP

Related Classes of com.clarkparsia.pellet.datatypes.DatatypeReasonerImpl

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.