SchemaObservation class
Instances of the class [Observation
] are used to specify
observations about an entity at a particular time The principal
properties of an [Observation
] are [observationAbout],
[measuredProperty], [statType
], [value and
[observationDate] and [measuredProperty] Some but not all
Observations represent a [QuantitativeValue
] Quantitative
observations can be about a [StatisticalVariable
], which is an
abstract specification about which we can make observations that
are grounded at a particular location and time Observations
can also encode a subset of simple RDF-like statements (its
observationAbout, a StatisticalVariable, defining the
measuredPoperty; its observationAbout property indicating the
entity the statement is about, and [value] ) In the context
of a quantitative knowledge graph, typical properties could
include [measuredProperty], [observationAbout],
[observationDate], [value], [unitCode], [unitText],
[measurementMethod].
See https://schema.org/Observation
Constructors
- SchemaObservation.new({SchemaQuantitativeValue? marginOfError, SchemaProperty? measuredProperty, SchemaStatisticalVariable? measurementDenominator, dynamic measurementMethod, SchemaEnumeration? measurementQualifier, dynamic measurementTechnique, dynamic observationAbout, String? observationDate, String? observationPeriod, dynamic variableMeasured, SchemaPropertyValue? additionalProperty, int? maxValue, int? minValue, String? unitCode, String? unitText, dynamic value, dynamic valueReference, String? additionalType, String? alternateName, dynamic description, String? disambiguatingDescription, dynamic identifier, dynamic image, dynamic mainEntityOfPage, String? name, SchemaAction? potentialAction, String? sameAs, dynamic subjectOf, String? url})
- Create a new instance of SchemaObservation
Properties
- additionalProperty ↔ SchemaPropertyValue?
-
//schema.org/gtin13, ...) will typically expect such data to be
provided using those properties, rather than using the generic
property/value mechanism.
getter/setter pair
- additionalType ↔ String?
-
//schema.org/docs/styleguide.html">style guide. Supported
types: String, String
getter/setter pair
- alternateName ↔ String?
-
An alias for the item.
getter/setter pair
- description ↔ dynamic
-
A description of the item. Supported types: String,
TextObject
getter/setter pair - disambiguatingDescription ↔ String?
-
A sub property of description A short description of the item
used to disambiguate from other, similar items Information from
other properties (in particular, name) may be necessary for the
description to be useful for disambiguation.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- identifier ↔ dynamic
-
The identifier property represents any kind of identifier for
any kind of [
Thing
], such as ISBNs, GTIN codes, UUIDs etc Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links See background notes for more details Supported types:PropertyValue
, String, Stringgetter/setter pair - image ↔ dynamic
-
An image of the item This can be a [
URL
] or a fully described [ImageObject
]. Supported types:ImageObject
, Stringgetter/setter pair - mainEntityOfPage ↔ dynamic
-
Indicates a page (or other CreativeWork) for which this thing is
the main entity being described See background
notes for details.
Supported types:
CreativeWork
, Stringgetter/setter pair - marginOfError ↔ SchemaQuantitativeValue?
-
A [marginOfError] for an [
Observation
].getter/setter pair - maxValue ↔ int?
-
The upper value of some characteristic or property.
getter/setter pair
- measuredProperty ↔ SchemaProperty?
-
//www.gs1.org/voc/?show=properties).
getter/setter pair
- measurementDenominator ↔ SchemaStatisticalVariable?
-
Identifies the denominator variable when an observation
represents a ratio or percentage.
getter/setter pair
- measurementMethod ↔ dynamic
-
A subproperty of [measurementTechnique] that can be used for
specifying specific methods, in particular via
[
MeasurementMethodEnum
]. Supported types:DefinedTerm
,MeasurementMethodEnum
, String, Stringgetter/setter pair - measurementQualifier ↔ SchemaEnumeration?
-
Provides additional qualification to an observation For example,
a GDP observation measures the Nominal value.
getter/setter pair
- measurementTechnique ↔ dynamic
-
"mass spectrometry" or "nmr spectroscopy" or "colorimetry" or
"immunofluorescence" If the [variableMeasured] is "depression
rating", the [measurementTechnique] could be "Zung Scale" or
"HAM-D" or "Beck Depression Inventory" If there are several
[variableMeasured] properties recorded for some given data
object, use a [
PropertyValue
] for each [variableMeasured] and attach the corresponding [measurementTechnique] The value can also be from an enumeration, organized as a [MeasurementMetholdEnumeration
]. Supported types:DefinedTerm
,MeasurementMethodEnum
, String, Stringgetter/setter pair - minValue ↔ int?
-
The lower value of some characteristic or property.
getter/setter pair
- name ↔ String?
-
The name of the item.
getter/setter pair
- observationAbout ↔ dynamic
-
The [observationAbout] property identifies an entity, often a
[
Place
], associated with an [Observation
]. Supported types:Place
,Thing
getter/setter pair - observationDate ↔ String?
-
The observationDate of an [
Observation
].getter/setter pair - observationPeriod ↔ String?
-
The length of time an Observation took place over The format
follows
P[0-9]*[Y|M|D|h|m|s]
For example, P1Y is Period 1 Year, P3M is Period 3 Months, P3h is Period 3 hours.getter/setter pair - potentialAction ↔ SchemaAction?
-
Indicates a potential Action, which describes an idealized
action in which this thing would play an 'object' role.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sameAs ↔ String?
-
URL of a reference Web page that unambiguously indicates the
item's identity E.g the URL of the item's Wikipedia page,
Wikidata entry, or official website.
getter/setter pair
- subjectOf ↔ dynamic
-
A CreativeWork or Event about this Thing. Supported types:
CreativeWork
, Eventgetter/setter pair - unitCode ↔ String?
-
The unit of measurement given using the UN/CEFACT Common Code (3
characters) or a URL Other codes than the UN/CEFACT Common Code
may be used with a prefix followed by a colon. Supported types:
String, String
getter/setter pair
- unitText ↔ String?
-
A string or text indicating the unit of measurement Useful if
you cannot provide a standard unit code for unitCode.
getter/setter pair
- url ↔ String?
-
URL of the item.
getter/setter pair
- value ↔ dynamic
-
The value of a [
QuantitativeValue
] (including [Observation
]) or property value node.\n\n* For [QuantitativeValue
] and [MonetaryAmount
], the recommended type for values is 'Number'.\n* For [PropertyValue
], it can be 'Text', 'Number', 'Boolean', or 'StructuredValue'.\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point Avoid using these symbols as a readability separator. Supported types: String,StructuredValue
, bool, intgetter/setter pair - valueReference ↔ dynamic
-
A secondary value that provides additional information on the
original value, e.g a reference temperature or a type of
measurement. Supported types:
DefinedTerm
,Enumeration
,MeasurementTypeEnumeration
,PropertyValue
,QualitativeValue
,QuantitativeValue
, String,StructuredValue
getter/setter pair - variableMeasured ↔ dynamic
-
The variableMeasured property can indicate (repeated as
necessary) the variables that are measured in some dataset,
either described as text or as pairs of identifier and
description using PropertyValue, or more explicitly as a
[
StatisticalVariable
]. Supported types:Property
,PropertyValue
,StatisticalVariable
, Stringgetter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJsonLd(
) → Map< String, dynamic> - Serialize SchemaObservation to JSON-LD
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited