public SimplePropertyPathPattern(BlankNodeOrIRI subject, PropertyPathExpression propertyPathExpression, Variable object) { this(new ResourceOrVariable(subject), new PropertyPathExpressionOrVariable(propertyPathExpression), new ResourceOrVariable(object)); }
public SimplePropertyPathPattern(Variable subject, Variable propertyPathExpression, RDFTerm object) { this(new ResourceOrVariable(subject), new PropertyPathExpressionOrVariable(propertyPathExpression), new ResourceOrVariable(object)); }
public SimplePropertyPathPattern(Variable subject, Variable propertyPathExpression, RDFTerm object) { this(new ResourceOrVariable(subject), new PropertyPathExpressionOrVariable(propertyPathExpression), new ResourceOrVariable(object)); }
public SimplePropertyPathPattern(Variable subject, PropertyPathExpression propertyPathExpression, Variable object) { this(new ResourceOrVariable(subject), new PropertyPathExpressionOrVariable(propertyPathExpression), new ResourceOrVariable(object)); }
public SimplePropertyPathPattern(Variable subject, PropertyPathExpression propertyPathExpression, RDFTerm object) { this(new ResourceOrVariable(subject), new PropertyPathExpressionOrVariable(propertyPathExpression), new ResourceOrVariable(object)); }
public SimplePropertyPathPattern(Variable subject, Variable propertyPathExpression, Variable object) { this(new ResourceOrVariable(subject), new PropertyPathExpressionOrVariable(propertyPathExpression), new ResourceOrVariable(object)); }
public SimplePropertyPathPattern(BlankNodeOrIRI subject, Variable propertyPathExpression, Variable object) { this(new ResourceOrVariable(subject), new PropertyPathExpressionOrVariable(propertyPathExpression), new ResourceOrVariable(object)); }
public SimplePropertyPathPattern(Variable subject, Variable propertyPathExpression, Variable object) { this(new ResourceOrVariable(subject), new PropertyPathExpressionOrVariable(propertyPathExpression), new ResourceOrVariable(object)); }
public SimplePropertyPathPattern(BlankNodeOrIRI subject, Variable propertyPathExpression, Variable object) { this(new ResourceOrVariable(subject), new PropertyPathExpressionOrVariable(propertyPathExpression), new ResourceOrVariable(object)); }
public SimplePropertyPathPattern(BlankNodeOrIRI subject, PropertyPathExpression propertyPathExpression, RDFTerm object) { this(new ResourceOrVariable(subject), new PropertyPathExpressionOrVariable(propertyPathExpression), new ResourceOrVariable(object)); }
public SimplePropertyPathPattern(BlankNodeOrIRI subject, Variable propertyPathExpression, RDFTerm object) { this(new ResourceOrVariable(subject), new PropertyPathExpressionOrVariable(propertyPathExpression), new ResourceOrVariable(object)); }
public SimplePropertyPathPattern(Variable subject, PropertyPathExpression propertyPathExpression, Variable object) { this(new ResourceOrVariable(subject), new PropertyPathExpressionOrVariable(propertyPathExpression), new ResourceOrVariable(object)); }
public SimplePropertyPathPattern(Variable subject, PropertyPathExpression propertyPathExpression, RDFTerm object) { this(new ResourceOrVariable(subject), new PropertyPathExpressionOrVariable(propertyPathExpression), new ResourceOrVariable(object)); }
public SimplePropertyPathPattern(BlankNodeOrIRI subject, PropertyPathExpression propertyPathExpression, Variable object) { this(new ResourceOrVariable(subject), new PropertyPathExpressionOrVariable(propertyPathExpression), new ResourceOrVariable(object)); }
public SimplePropertyPathPattern(BlankNodeOrIRI subject, PropertyPathExpression propertyPathExpression, RDFTerm object) { this(new ResourceOrVariable(subject), new PropertyPathExpressionOrVariable(propertyPathExpression), new ResourceOrVariable(object)); }
public SimplePropertyPathPattern(BlankNodeOrIRI subject, Variable propertyPathExpression, RDFTerm object) { this(new ResourceOrVariable(subject), new PropertyPathExpressionOrVariable(propertyPathExpression), new ResourceOrVariable(object)); }
private ResourceOrVariable addPropertyPathPatterns(Set<PropertyPathPattern> propertyPathPatterns, List<ResourceOrVariable> nodes) { ResourceOrVariable head = null; PropertyPathExpressionOrVariable rdfFirst = new PropertyPathExpressionOrVariable(new PredicatePath(RDF_FIRST)); PropertyPathExpressionOrVariable rdfRest = new PropertyPathExpressionOrVariable(new PredicatePath(RDF_REST)); UriRefOrVariable rdfNil = new UriRefOrVariable(RDF_NIL); ResourceOrVariable prevSubject = null; for (ResourceOrVariable node : nodes) { ResourceOrVariable currentSubject = getNewBNode(); if (prevSubject != null) { propertyPathPatterns.add( new SimplePropertyPathPattern(prevSubject, rdfRest, currentSubject)); } else { head = currentSubject; } propertyPathPatterns.add( new SimplePropertyPathPattern(currentSubject, rdfFirst, node)); prevSubject = currentSubject; } if (prevSubject != null) { propertyPathPatterns.add( new SimplePropertyPathPattern(prevSubject, rdfRest, rdfNil)); } return head; }
private ResourceOrVariable addPropertyPathPatterns(Set<PropertyPathPattern> propertyPathPatterns, List<ResourceOrVariable> nodes) { ResourceOrVariable head = null; PropertyPathExpressionOrVariable rdfFirst = new PropertyPathExpressionOrVariable(new PredicatePath(RDF_FIRST)); PropertyPathExpressionOrVariable rdfRest = new PropertyPathExpressionOrVariable(new PredicatePath(RDF_REST)); UriRefOrVariable rdfNil = new UriRefOrVariable(RDF_NIL); ResourceOrVariable prevSubject = null; for (ResourceOrVariable node : nodes) { ResourceOrVariable currentSubject = getNewBNode(); if (prevSubject != null) { propertyPathPatterns.add( new SimplePropertyPathPattern(prevSubject, rdfRest, currentSubject)); } else { head = currentSubject; } propertyPathPatterns.add( new SimplePropertyPathPattern(currentSubject, rdfFirst, node)); prevSubject = currentSubject; } if (prevSubject != null) { propertyPathPatterns.add( new SimplePropertyPathPattern(prevSubject, rdfRest, rdfNil)); } return head; }
case PNAME_LN: propertyPathExpression = VerbPath(); propertyPathExpressionOrVariable = new PropertyPathExpressionOrVariable(propertyPathExpression); break; case VAR1: case VAR2: v = VerbSimple(); propertyPathExpressionOrVariable = new PropertyPathExpressionOrVariable(v); break; default: case PNAME_LN: propertyPathExpression = VerbPath(); propertyPathExpressionOrVariable = new PropertyPathExpressionOrVariable(propertyPathExpression); break; case VAR1: case VAR2: v = VerbSimple(); propertyPathExpressionOrVariable = new PropertyPathExpressionOrVariable(v); break; default:
case PNAME_LN: propertyPathExpression = VerbPath(); propertyPathExpressionOrVariable = new PropertyPathExpressionOrVariable(propertyPathExpression); break; case VAR1: case VAR2: v = VerbSimple(); propertyPathExpressionOrVariable = new PropertyPathExpressionOrVariable(v); break; default: case PNAME_LN: propertyPathExpression = VerbPath(); propertyPathExpressionOrVariable = new PropertyPathExpressionOrVariable(propertyPathExpression); break; case VAR1: case VAR2: v = VerbSimple(); propertyPathExpressionOrVariable = new PropertyPathExpressionOrVariable(v); break; default: