|
ContentsAnnotation2 module documentationAnnotationTypeAnnotationType represents AnnotationType instance in Simantics ontology ( newAnnotationType :: Resource -> <WriteGraph> Resource Creates new AnnotationType under the given Library instance and returns it without PropertyRelation newAnnotationType1 :: Resource -> <WriteGraph> (Resource, Resource) Creates new AnnotationType under the given Library instance. Returns a Tuple2 consisting the AnnotationPropertyRelation and AnnotationType instances. attachAnnotationType :: Resource -> Resource -> <WriteGraph> Resource Attaches the given AnnotationType to the given Resource which can be for example a Diagram or a Symbol. AnnotationValueAnnotationValue represents AnnotationType instance in Simantics ontology ( newAnnotationValue :: Resource -> Resource -> <WriteGraph> Resource Creates new AnnotationValue under the given Library instance with the AnnotationType reference. Returns the created AnnotationValue.
AnnotationPropertynewAnnotationProperty :: Resource -> <WriteGraph> Resource Creates new AnnotationProperty under the given AnnotatoinType instance. Returns the created AnnotationProperty. advancedAnnotationProperty :: Resource -> String -> String -> String -> String -> String -> String -> <WriteGraph> Resource Creates new AnnotationProperty under the given AnnotationType instance with advanced options for user to define non-default parameters for the following values
removeAnnotationProperty :: Resource -> <WriteGraph> () Removes the given AnnotationProperty instance. Undocumented entitiescopyAnnotationData :: Resource -> Resource -> <WriteGraph> ()
exportAnnotationType :: File -> Resource -> <Proc> () Writes the given AnnotationType into the given file in the format read back
by getAnnotationNameFromType :: Resource -> <ReadGraph> String The name of the annotation property relation that has the given AnnotationType as its range. This is the name under which annotations of that type appear on the resources they are attached to. Fails if the type does not have exactly one such relation. getPossibleAnnotationType :: Resource -> String -> <ReadGraph> Maybe Resource
importAnnotation :: File -> Resource -> <Proc> () Imports the annotation types stored in the given file into the given library. Must be called outside a database transaction, since it writes on its own. newAnnotationValueWithName :: Resource -> String -> Resource -> <WriteGraph> Resource
saveAnnotation :: Resource -> Resource -> String -> <WriteGraph> Resource
setAnnotationPropertyValue :: Resource -> Resource -> String -> String -> <WriteGraph> ()
setPropertyDescription :: Resource -> String -> <WriteGraph> () Sets the description of the given AnnotationProperty. setPropertyLabel :: Resource -> String -> <WriteGraph> () Sets the label shown for the given AnnotationProperty in the user interface. setPropertyRange :: Resource -> String -> <WriteGraph> () Sets the allowed value range of the given AnnotationProperty into the datatype it requires. The range is written in databoard range notation. setPropertyType :: Resource -> String -> <WriteGraph> () Sets the required value type of the given AnnotationProperty. The type is
given as an SCL type, written the way it would appear in a type signature,
for example Note that this is not a databoard datatype, unlike the range given to
The default value of the property is converted to the new type. setPropertyUnit :: Resource -> String -> <WriteGraph> () Sets the unit of the given AnnotationProperty, both in the datatype it requires and in the unit shown for it. The stored value is not converted. |