Package lupos.datastructures.items

Examples of lupos.datastructures.items.VariableInInferenceRule


        }
        if (left instanceof lupos.sparql1_1.ASTVar) {
          final String varname = ((lupos.sparql1_1.ASTVar) left)
              .getName();
          var = new Variable(varname);
          varInference = new VariableInInferenceRule(varname);

          if (right instanceof lupos.sparql1_1.ASTQName
              || right instanceof lupos.sparql1_1.ASTQuotedURIRef
              || right instanceof lupos.sparql1_1.ASTFloatingPoint
              || right instanceof lupos.sparql1_1.ASTInteger
View Full Code Here


        }
        if (left instanceof lupos.sparql1_1.ASTVar) {
          final String varname = ((lupos.sparql1_1.ASTVar) left)
          .getName();
          var = new Variable(varname);
          varInference = new VariableInInferenceRule(varname);

          if (!triplePattern.getVariables().contains(var)
              && !triplePattern.getVariables().contains(
                  varInference)) {
            // TODO
View Full Code Here

          }
          if (left instanceof lupos.sparql1_1.ASTVar) {
            final String varname = ((lupos.sparql1_1.ASTVar) left)
                .getName();
            Variable var = new Variable(varname);
            VariableInInferenceRule varInference = new VariableInInferenceRule(varname);
 
            if (right instanceof lupos.sparql1_1.ASTQName
                || right instanceof lupos.sparql1_1.ASTQuotedURIRef
                || right instanceof lupos.sparql1_1.ASTFloatingPoint
                || right instanceof lupos.sparql1_1.ASTInteger
                || right instanceof lupos.sparql1_1.ASTStringLiteral
                || right instanceof lupos.sparql1_1.ASTDoubleCircumflex) {
              Literal constant = LazyLiteral.getLiteral(right);
             
              if(var.equals(v) || varInference.equals(v)){
                if(!l.equals(constant))
                  return true;
              }
             
            } else return false;
View Full Code Here

import lupos.engine.operators.tripleoperator.TriplePattern;
import lupos.sparql1_1.ParseException;

public class RudimentaryRDFSchemaInference {
  protected static Variable v(final String str) {
    return new VariableInInferenceRule(str);
  }
View Full Code Here

  @Override
  public Object evaluate(final ASTVar node, final Bindings b, final Map<Node, Object> d) throws NotBoundException {
    Literal l = b.get(new Variable(node.getName()));
    if (l == null) {
      l = b.get(new VariableInInferenceRule(node.getName()));
    }
    if (l == null) {
      throw new NotBoundException("Variable "
          + node.getName()
          + " is not bound!");
View Full Code Here

TOP

Related Classes of lupos.datastructures.items.VariableInInferenceRule

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.