From a76dd4371a58672c32738d1303766bcbacd2bc72 Mon Sep 17 00:00:00 2001 From: dwnoble Date: Mon, 20 Apr 2026 14:18:07 -0700 Subject: [PATCH] Updated StatVarObservation properties (updated measurementMethod property, created imortName and provenanceUrl properties) Context: There are some inconsistencies in StatVarObservation schema today and the results that come back from the /v2/observations API: 1. provenanceUrl isn't a real property in the graph, but it is stored in bq/bt/spanner, and it's returned in the facet when we fetch observations with the /v2/observations api. 2. Same for importName - it's not a real property, but it's part of the observations facet 3. measurementMethod is a real property, but in the schema it's attached to the StatisticalVariable and not the StatVarObservation PiperOrigin-RevId: 902819473 --- core/dcschema.mcf | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/core/dcschema.mcf b/core/dcschema.mcf index 2491a005d..6ac1db95d 100644 --- a/core/dcschema.mcf +++ b/core/dcschema.mcf @@ -170,7 +170,7 @@ domainIncludes: schema:Observation Node: dcid:measurementMethod name: "measurementMethod" -domainIncludes: schema:Observation, dcs:StatisticalVariable +domainIncludes: schema:Observation, dcs:StatVarObservation, dcs:StatisticalVariable rangeIncludes: schema:Text, schema:Enumeration typeOf: schema:Property description: "Provides additional information about how the measuredProperty of a StatisticalVariable was measured." @@ -2685,6 +2685,20 @@ domainIncludes: dcs:StatVarObservation, dcs:StatVarObsSeries rangeIncludes: dcs:StatisticalVariable, schema:Property description: "Identifies the StatisticalVariable associated with an StatVarObservation." +Node: dcid:importName +typeOf: schema:Property +name: "importName" +domainIncludes: dcs:StatVarObservation +rangeIncludes: schema:Text +description: "The name of the import provenance that created this StatVarObservation." + +Node: dcid:provenanceUrl +typeOf: schema:Property +name: "provenanceUrl" +domainIncludes: dcs:StatVarObservation +rangeIncludes: schema:URL +description: "The URL of the provenance of the StatVarObservation." + Node: dcid:StatisticalVariableSlice typeOf: schema:Class subClassOf: schema:Intangible @@ -2700,7 +2714,7 @@ supersededBy: dcs:StatisticalVariable Node: dcid:measurementDenominator typeOf: schema:Property name: "measurementDenominator" -domainIncludes: schema:Observation, dcs:StatisticalVariable +domainIncludes: schema:Observation, dcs:StatVarObservation, dcs:StatisticalVariable rangeIncludes: dcs:StatisticalVariable description: "Identifies the StatisticalVariable used as the denominator when a StatisticalVariable or StatVarObservation represents a ratio or percentage."