Package com.clarkparsia.pellet.datatypes

Examples of com.clarkparsia.pellet.datatypes.Facet


    kb.addInverseProperty( p1, p2 );
  }

 
  public void visit(OWLFacetRestriction node) {
    Facet facet = Facet.Registry.get( ATermUtils.makeTermAppl( node.getFacet().getIRI().toString() ) )

    if( facet != null ) {
      OWLLiteral facetValue = node.getFacetValue();
      facetValue.accept( this );     

      term = ATermUtils.makeFacetRestriction( facet.getName(), term );
    }
  }
View Full Code Here


     */

    /*
     * Check the facet
     */
    Facet f = Facet.Registry.get( facet );
    if( f == null ) {
      final String msg = format(
          "Attempt to constrain datatype (%s) with unsupported constraining facet ('%s' , '%s')",
          getDatatype(), facet, value );
      log.severe( msg );
View Full Code Here

     */

    /*
     * Check the facet
     */
    Facet f = Facet.Registry.get( facet );
    if( f == null ) {
      final String msg = format(
          "Attempt to constrain datatype (%s) with unsupported constraining facet ('%s' , '%s')",
          getDatatype(), facet, value );
      log.severe( msg );
View Full Code Here

    kb.addInverseProperty( p1, p2 );
  }

  public void visit(OWLDataRangeFacetRestriction node) {
    Facet facet = Facet.Registry.get( ATermUtils.makeTermAppl( node.getFacet().getURI().toString() ) )

    if( facet != null ) {
      OWLConstant facetValue = node.getFacetValue();
      facetValue.accept( this );     

      term = ATermUtils.makeFacetRestriction( facet.getName(), term );
    }
  }
View Full Code Here

         * First check if the literals' datatypes are comparable. If so,
         * compile the comparison into a datatype reasoner
         * satisfiability check.
         */
        if( dtr.isSatisfiable( Arrays.asList( type1, type2 ) ) ) {
          Facet f = lt
            ? inclusive
              ? Facet.XSD.MIN_INCLUSIVE
              : Facet.XSD.MIN_EXCLUSIVE
            : inclusive
              ? Facet.XSD.MAX_INCLUSIVE
              : Facet.XSD.MAX_EXCLUSIVE;
          final ATermAppl canon1 = dtr.getCanonicalRepresentation( term1 );
          final ATermAppl baseType = (ATermAppl) canon1
              .getArgument( ATermUtils.LIT_URI_INDEX );
          final ATermAppl dr = ATermUtils
              .makeRestrictedDatatype( baseType, new ATermAppl[] { ATermUtils
                  .makeFacetRestriction( f.getName(), canon1 ) } );
          if( dtr.isSatisfiable( Collections.singleton( dr ), l2val ) )
            return true;
          else
            return false;
        }
View Full Code Here

      Object value) throws InvalidConstrainingFacetException {

    /*
     * Check the facet
     */
    Facet f = Facet.Registry.get( facet );
    if( f == null ) {
      final String msg = format(
          "Attempt to constrain datatype (%s) with unsupported constraining facet ('%s' , '%s')",
          getDatatype(), facet, value );
      log.severe( msg );
View Full Code Here

TOP

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

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.