Class _FieldShapeQuery

    • Method Detail

      • datatypes

        public _FieldShapeQuery datatypes​(_ResourceQueryDefinition queryDef)
        Produces the individual datatypes if this field is based on a sh:or of multiple datatypes (indicated by having datatype rdfs:Literal), otherwise behaves like datatype introspection.
      • defaultValue

        public _FieldShapeQuery defaultValue()
        Returns a non-empty string (encoded RDF node) if this field has a sh:defaultValue, null otherwise.
      • description

        public _FieldShapeQuery description()
        A human-readable description of the field.
      • externalType

        public _FieldShapeQuery externalType​(_ResourceQueryDefinition queryDef)
        The external type if this is an object-valued field that points at a resource outside of the GraphQL schema.
      • isHidden

        public _FieldShapeQuery isHidden()
        True if this field should be hidden from user interfaces.
      • isIndexed

        public _FieldShapeQuery isIndexed()
        True if this field is indexed, i.e. its values are sorted and a UI should maintain index order from 0 to n.
      • isInferred

        public _FieldShapeQuery isInferred()
        True if this is an inferred field, the values of which are derived or computed from other values. Inferred fields are not mutable.
      • isMaxExclusive

        public _FieldShapeQuery isMaxExclusive()
        True if the value of max should be interpreted as < and not <=
      • isMinExclusive

        public _FieldShapeQuery isMinExclusive()
        True if the value of min should be interpreted as > and not >=
      • max

        public _FieldShapeQuery max()
        The maximum value of the field, if specified.
      • maxCount

        public _FieldShapeQuery maxCount()
        The maximum permitted number of values of the field (if any).
      • maxLength

        public _FieldShapeQuery maxLength()
        The maximum string length of values of the field (if any).
      • min

        public _FieldShapeQuery min()
        The minimum value of the field, if specified.
      • minCount

        public _FieldShapeQuery minCount()
        The minimum required number of values of the field, defaulting to 0.
      • minLength

        public _FieldShapeQuery minLength()
        The minimum string length of values of the field, defaulting to 0.
      • node

        public _FieldShapeQuery node()
        The URI of the sh:node constraint, defining additional filter conditions for auto-complete widgets.
      • order

        public _FieldShapeQuery order()
        A number representing the relative ordering of this field compared to others. Defaults to 0.
      • pattern

        public _FieldShapeQuery pattern()
        The regular expression that the values of the field must match.
      • readOnly

        public _FieldShapeQuery readOnly()
        True if this field has been marked to be read-only using dash:readOnly.
      • reifiableBy

        public _FieldShapeQuery reifiableBy()
        The URI of the specified dash:reifiableBy, or null.
      • scalar

        public _FieldShapeQuery scalar()
        True if the GraphQL field is of a scalar type, i.e. does not have child selectors.
      • singleLine

        public _FieldShapeQuery singleLine()
        True or false if the property shape has a dash:singleLine constraint, or null if none has been declared, meaning "don't know".
      • unionTypeNames

        public _FieldShapeQuery unionTypeNames()
        The GraphQL names of the individual types if this field is a union type.
      • uriStart

        public _FieldShapeQuery uriStart()
        The start of URIs used by all instances where this property applies as primary key, as specified using dash:uriStart.
      • viewWidget

        public _FieldShapeQuery viewWidget()
        The URI of the specified tosh:viewWidget, or null.
      • createFragment

        public static Fragment<_FieldShapeQuery> createFragment​(String name,
                                                                _FieldShapeQueryDefinition queryDef)
        Creates a GraphQL "named" fragment with the specified query type definition. The generics nature of fragments ensures that a fragment can only be used at the right place in the GraphQL request.
        Parameters:
        name - The name of the fragment, must be unique for a given GraphQL request.
        queryDef - The fragment definition.
        Returns:
        The fragment of a given generics type.
      • addFragmentReference

        public _FieldShapeQuery addFragmentReference​(Fragment<_FieldShapeQuery> fragment)
        Adds a _FieldShapeQuery fragment reference at the current position of the query. For example for a fragment named test, calling this method will add the reference ...test in the query. For GraphQL types implementing an interface, there will be some similar methods using the Query type of each implemented interface.
        Parameters:
        fragment - The fragment to reference.