public class ShowlIdRefPropertyShape extends ShowlDerivedPropertyShape
shape:SourcePerson a sh:NodeShape;
sh:property [
sh:path ex:mother ;
sh:nodeKind sh:IRI ;
konig:formula "$.parent[gender Female]"
]
.
In this example, the 'parent' property has a virtual sh:shape which contains the 'gender' property. For the sake of argument, let's call the virtual shape 'shape:SourcePerson_parent'.
Clearly, shape:SourcePerson_parent describes the same individual as {shape:SourcePerson}.mother, and
since {shape:SourcePerson}.mother has nodeKind sh:IRI.
The ShowlIdRefPropertyShape describes the 'konig:id' property of 'shape:SourcePerson_parent'.
The getIdRef() method returns the {shape:SourcePerson}.mother PropertyShape.
property| Constructor and Description |
|---|
ShowlIdRefPropertyShape(ShowlNodeShape declaringShape,
ShowlProperty property,
ShowlPropertyShape idref)
Create a new ShowlIdRefPropertyShape.
|
| Modifier and Type | Method and Description |
|---|---|
ShowlPropertyShape |
getIdref() |
asDerivedPropertyShape, isDirectaddExpression, addHasValue, addHasValueDeprecated, addJoinCondition, addMapping, asGroup, asSynsetProperty, direct, findJoinCondition, fullPath, getDeclaringShape, getDirection, getExpressionList, getFormula, getHasValue, getHasValueDeprecated, getMapping, getMappings, getNodeKind, getOwlClassId, getPath, getPeer, getPeerGroup, getPredicate, getProperty, getPropertyConstraint, getRootNode, getSelectedExpression, getSelectedMapping, getSynonym, getTargetProperty, getUsedIn, getValueShape, getValueType, getValueType, inSameNodeShape, isDeclaredWithin, isEnumIndividual, isEnumIndividual, isEnumProperty, isLeaf, isNestedAccordingToFormula, isRepeated, isRequired, isTargetProperty, isUniqueKey, listJoinConditions, maybeDirect, pathSeparator, propertyPath, setFormula, setSelectedExpression, setSelectedMapping, setTargetProperty, setValueShape, synonyms, toString, usedInpublic ShowlIdRefPropertyShape(ShowlNodeShape declaringShape, ShowlProperty property, ShowlPropertyShape idref)
declaringShape - The 'virtual' shape within the formula.property - The ShowlProperty for 'konig:id'.idref - The source property that references the virtual shape.public ShowlPropertyShape getIdref()
Copyright © 2019. All rights reserved.