public List<PropertyConstraint> propertyConstraints() { final Builder<PropertyConstraint> builder=ImmutableList.<PropertyConstraint>builder(); filter(builder,PropertyConstraint.class); return builder.build(); }
Constraints. shape(). withLabel("node-constraint"). withComment("A constraint for an specific value"). withPropertyConstraint(pc). withPropertyConstraint(ipc); Shape typeShape= Constraints. shape(). withLabel("type-constraint"). withComment("A constraint for a type"). withPropertyConstraint(pc). withPropertyConstraint(ipc); return Constraints.
shapeInd.addValue(vocabularyTerm(RDF.TYPE), externalIndividual(shaclTerm("Shape"))); populateDescription(shapeInd, shape); List<PropertyConstraint> pcs = shape.propertyConstraints(); Set<Shape> shapes=Sets.newLinkedHashSet(); for(int j=0;j<pcs.size();j++) { List<InversePropertyConstraint> ipcs = shape.inversePropertyConstraints(); for(int j=0;j<ipcs.size();j++) { InversePropertyConstraint ipc = ipcs.get(j);
Constraints. shape(). withLabel("node-constraint"). withComment("A constraint for an specific value"). withPropertyConstraint(pc). withPropertyConstraint(ipc); Shape typeShape= Constraints. shape(). withLabel("type-constraint"). withComment("A constraint for a type"). withPropertyConstraint(pc). withPropertyConstraint(ipc); return Constraints.
public static Shape shape() { return new Shape(); }
public List<InversePropertyConstraint> inversePropertyConstraints() { final Builder<InversePropertyConstraint> builder=ImmutableList.<InversePropertyConstraint>builder(); filter(builder,InversePropertyConstraint.class); return builder.build(); }