Package ch.miranet.rdfstructure
Class PropertyShape
- java.lang.Object
-
- ch.miranet.rdfstructure.StructuralElement<org.eclipse.rdf4j.model.Resource>
-
- ch.miranet.rdfstructure.PropertyShape
-
public class PropertyShape extends StructuralElement<org.eclipse.rdf4j.model.Resource>
-
-
Field Summary
-
Fields inherited from class ch.miranet.rdfstructure.StructuralElement
b, resource
-
-
Constructor Summary
Constructors Constructor Description PropertyShape(RdfStructureBuilder structBuilder, org.eclipse.rdf4j.model.Resource propertyShapeResource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyShapeany(BiConsumer<org.eclipse.rdf4j.model.util.ModelBuilder,org.eclipse.rdf4j.model.Resource> consumer)PropertyShapeclazz(RdfsClass cls)sh:classPropertyShapeclazz(String prefixedNameOrIri)sh:classPropertyShapeclazz(org.eclipse.rdf4j.model.IRI iri)sh:classPropertyShapecomment(String comment)rdfs:commentPropertyShapecount(int count)sh:minCount
sh:maxCountPropertyShapelabel(String label)rdfs:labelPropertyShapemaxCount(int count)sh:maxCountPropertyShapeminCount(int count)sh:minCount-
Methods inherited from class ch.miranet.rdfstructure.StructuralElement
getResource
-
-
-
-
Constructor Detail
-
PropertyShape
public PropertyShape(RdfStructureBuilder structBuilder, org.eclipse.rdf4j.model.Resource propertyShapeResource)
-
-
Method Detail
-
label
public PropertyShape label(String label)
rdfs:label
-
comment
public PropertyShape comment(String comment)
rdfs:comment
-
minCount
public PropertyShape minCount(int count)
sh:minCount
-
maxCount
public PropertyShape maxCount(int count)
sh:maxCount
-
count
public PropertyShape count(int count)
sh:minCount
sh:maxCount
-
clazz
public PropertyShape clazz(RdfsClass cls)
sh:class
-
clazz
public PropertyShape clazz(String prefixedNameOrIri)
sh:class
-
clazz
public PropertyShape clazz(org.eclipse.rdf4j.model.IRI iri)
sh:class
-
any
public PropertyShape any(BiConsumer<org.eclipse.rdf4j.model.util.ModelBuilder,org.eclipse.rdf4j.model.Resource> consumer)
- Overrides:
anyin classStructuralElement<org.eclipse.rdf4j.model.Resource>
-
-