Class FacetConstraintImpl

java.lang.Object
org.apache.jena.enhanced.Polymorphic<org.apache.jena.rdf.model.RDFNode>
org.apache.jena.enhanced.EnhNode
org.apache.jena.rdf.model.impl.ResourceImpl
org.aksw.facete.v3.impl.FacetConstraintImpl
All Implemented Interfaces:
FacetConstraint, FacetConstraintControl, org.apache.jena.graph.FrontsNode, org.apache.jena.rdf.model.RDFNode, org.apache.jena.rdf.model.Resource

public class FacetConstraintImpl extends org.apache.jena.rdf.model.impl.ResourceImpl implements FacetConstraint
  • Field Summary

    Fields inherited from class org.apache.jena.rdf.model.impl.ResourceImpl

    factory, rdfNodeFactory

    Fields inherited from class org.apache.jena.enhanced.EnhNode

    enhGraph, node
  • Constructor Summary

    Constructors
    Constructor
    Description
    FacetConstraintImpl(org.apache.jena.graph.Node n, org.apache.jena.enhanced.EnhGraph m)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.jena.graph.Node
    blankNodeToVar(org.apache.jena.graph.Node node)
     
    boolean
     
    enabled(boolean onOrOff)
     
    org.apache.jena.sparql.expr.Expr
     
    expr(org.apache.jena.sparql.expr.Expr expr)
    Applies an expression-based constraint to the given facet node
    exprOld(org.apache.jena.sparql.expr.Expr expr)
     
    Map<Integer,org.apache.jena.graph.Node>
     
    static void
    main(String[] args)
     
     
    static Integer
    tryGetBnodeAsInt(org.apache.jena.graph.Node n)
     
    void
     
    static org.apache.jena.graph.Node
    varToBlankNode(org.apache.jena.graph.Node node)
     

    Methods inherited from class org.apache.jena.rdf.model.impl.ResourceImpl

    abort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, asLiteral, asResource, asStatementTerm, begin, commit, getId, getLocalName, getModel, getModelCom, getNameSpace, getProperty, getProperty, getPropertyResourceValue, getRequiredProperty, getRequiredProperty, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, inModel, listProperties, listProperties, listProperties, mustHaveModel, removeAll, removeProperties, visitWith

    Methods inherited from class org.apache.jena.enhanced.EnhNode

    as, asNode, canAs, canSupport, convertTo, equals, getGraph, getPersonality, hashCode, isAnon, isLiteral, isResource, isStatementTerm, isURIResource, isValid, viewAs

    Methods inherited from class org.apache.jena.enhanced.Polymorphic

    addView, alreadyHasView, asInternal, supports

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.jena.graph.FrontsNode

    asNode

    Methods inherited from interface org.apache.jena.rdf.model.RDFNode

    as, asLiteral, asResource, asStatementTerm, canAs, getModel, isAnon, isLiteral, isResource, isStatementTerm, isURIResource, visitWith

    Methods inherited from interface org.apache.jena.rdf.model.Resource

    abort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getId, getLocalName, getNameSpace, getProperty, getProperty, getPropertyResourceValue, getRequiredProperty, getRequiredProperty, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, inModel, listProperties, listProperties, listProperties, removeAll, removeProperties
  • Constructor Details

    • FacetConstraintImpl

      public FacetConstraintImpl(org.apache.jena.graph.Node n, org.apache.jena.enhanced.EnhGraph m)
  • Method Details

    • enabled

      public boolean enabled()
      Specified by:
      enabled in interface FacetConstraintControl
    • enabled

      public FacetConstraint enabled(boolean onOrOff)
      Specified by:
      enabled in interface FacetConstraint
      Specified by:
      enabled in interface FacetConstraintControl
    • expr

      public org.apache.jena.sparql.expr.Expr expr()
      Specified by:
      expr in interface FacetConstraintControl
    • tryGetBnodeAsInt

      public static Integer tryGetBnodeAsInt(org.apache.jena.graph.Node n)
    • getBnodeMap

      public Map<Integer,org.apache.jena.graph.Node> getBnodeMap()
    • varToBlankNode

      public static org.apache.jena.graph.Node varToBlankNode(org.apache.jena.graph.Node node)
    • blankNodeToVar

      public static org.apache.jena.graph.Node blankNodeToVar(org.apache.jena.graph.Node node)
    • expr

      public FacetConstraint expr(org.apache.jena.sparql.expr.Expr expr)
      Applies an expression-based constraint to the given facet node
      Specified by:
      expr in interface FacetConstraint
    • exprOld

      public FacetConstraint exprOld(org.apache.jena.sparql.expr.Expr expr)
    • toString

      public String toString()
      Specified by:
      toString in interface org.apache.jena.rdf.model.RDFNode
      Specified by:
      toString in interface org.apache.jena.rdf.model.Resource
      Overrides:
      toString in class org.apache.jena.rdf.model.impl.ResourceImpl
    • main

      public static void main(String[] args)
    • unlink

      public void unlink()
      Specified by:
      unlink in interface FacetConstraintControl