SEO. JSONLD. ConstraintNode
(SEO v0.3.0-rc.0)
View Source
The ConstraintNode type is provided to support usecases in which a node in a structured data graph is described with properties which appear to describe a single entity, but are being used in a situation where they serve a more abstract purpose. A SEO.JSONLD.ConstraintNode can be described using constraintProperty and numConstraints. These constraint properties can serve a
variety of purposes, and their values may sometimes be understood to indicate sets of possible values rather than single, exact and specific values.
Helper for building a Schema.org ConstraintNode JSON-LD structure.
Summary
Types
A JSON-LD map ready to be nested or rendered. String-keyed, always
includes "@type" set to "ConstraintNode", plus any camelCased
field keys the caller provided (see build/1). "@context" is added
at render time by SEO.JSONLD.meta/1 on the top-level node only.
Functions
Build a ConstraintNode JSON-LD map.
Types
@type attrs() :: %{ optional(:constraint_property) => SEO.JSONLD.Property.t() | map() | URI.t() | String.t(), optional(:num_constraints) => integer(), optional(:additional_type) => String.t() | URI.t(), optional(:alternate_name) => String.t(), optional(:description) => SEO.JSONLD.TextObject.t() | map() | String.t(), optional(:disambiguating_description) => String.t(), optional(:identifier) => String.t() | URI.t() | SEO.JSONLD.PropertyValue.t() | map(), optional(:image) => URI.t() | String.t() | SEO.JSONLD.ImageObject.t() | map(), optional(:main_entity_of_page) => SEO.JSONLD.CreativeWork.t() | map() | URI.t() | String.t(), optional(:name) => String.t(), optional(:owner) => SEO.JSONLD.Organization.t() | map() | SEO.JSONLD.Person.t(), optional(:potential_action) => SEO.JSONLD.Action.t() | map(), optional(:same_as) => URI.t() | String.t(), optional(:subject_of) => SEO.JSONLD.Event.t() | map() | SEO.JSONLD.CreativeWork.t(), optional(:url) => URI.t() | String.t() } | [ constraint_property: SEO.JSONLD.Property.t() | map() | URI.t() | String.t(), num_constraints: integer(), additional_type: String.t() | URI.t(), alternate_name: String.t(), description: SEO.JSONLD.TextObject.t() | map() | String.t(), disambiguating_description: String.t(), identifier: String.t() | URI.t() | SEO.JSONLD.PropertyValue.t() | map(), image: URI.t() | String.t() | SEO.JSONLD.ImageObject.t() | map(), main_entity_of_page: SEO.JSONLD.CreativeWork.t() | map() | URI.t() | String.t(), name: String.t(), owner: SEO.JSONLD.Organization.t() | map() | SEO.JSONLD.Person.t(), potential_action: SEO.JSONLD.Action.t() | map(), same_as: URI.t() | String.t(), subject_of: SEO.JSONLD.Event.t() | map() | SEO.JSONLD.CreativeWork.t(), url: URI.t() | String.t() ]
A JSON-LD map ready to be nested or rendered. String-keyed, always
includes "@type" set to "ConstraintNode", plus any camelCased
field keys the caller provided (see build/1). "@context" is added
at render time by SEO.JSONLD.meta/1 on the top-level node only.
Functions
Build a ConstraintNode JSON-LD map.
Fields
:constraint_property- Indicates a property used as a constraint. For example, in the definition of aSEO.JSONLD.StatisticalVariable. The value is a property, either from within Schema.org or from other compatible (e.g. RDF) systems such as DataCommons.org or Wikidata.org.:num_constraints- Indicates the number of constraints property values defined for a particularSEO.JSONLD.ConstraintNodesuch asSEO.JSONLD.StatisticalVariable. This helps applications understand if they have access to a sufficiently complete description of aSEO.JSONLD.StatisticalVariableor other construct that is defined using properties on template-style nodes.
Inherited properties
Additional properties are available through the inheritance chain. See each ancestor's docs for its properties: