Skip to content
Ruben de Laat edited this page Feb 23, 2018 · 12 revisions

Validation Report

The Validation Report is an Extended Data Schema. It's unique name is VALIDATION_JSON_1.0

Specification

The data format must be valid JSON. See the example for now.

Example

{  
   "items":[  
      {  
         "type":"header",
         "text":"PROJECT"
      },
      {  
         "type":"line",
         "status":"SUCCESS",
         "oid":-1,
         "identification":"Number of projects",
         "value":"1 projects",
         "shouldBe":"Exactly 1 IfcProject object"
      },
      {  
         "type":"header",
         "text":"REPRESENTATION"
      },
      {  
         "type":"line",
         "status":"SUCCESS",
         "oid":-1,
         "identification":"TrueNorth",
         "value":"6.1230318E-17, 1.0",
         "shouldBe":"Set"
      },
      {  
         "type":"header",
         "text":"UNITS"
      },
      {  
         "type":"line",
         "status":"SUCCESS",
         "oid":-1,
         "identification":"Length unit definition",
         "value":"true",
         "shouldBe":"Found"
      },
      {  
         "type":"line",
         "status":"SUCCESS",
         "oid":-1,
         "identification":"Length unit",
         "value":"true",
         "shouldBe":"Metres"
      },
      {  
         "type":"line",
         "status":"SUCCESS",
         "oid":-1,
         "identification":"Length unit prefix",
         "value":"NULL",
         "shouldBe":"None or millis"
      },
      {  
         "type":"line",
         "status":"SUCCESS",
         "oid":-1,
         "identification":"Area unit definition",
         "value":"true",
         "shouldBe":"Found"
      },
      {  
         "type":"line",
         "status":"SUCCESS",
         "oid":-1,
         "identification":"Area unit",
         "value":"true",
         "shouldBe":"Metres squared"
      },
      {  
         "type":"line",
         "status":"SUCCESS",
         "oid":-1,
         "identification":"Area unit prefix",
         "value":"NULL",
         "shouldBe":"None"
      },
      {  
         "type":"line",
         "status":"SUCCESS",
         "oid":-1,
         "identification":"Volume unit definition",
         "value":"true",
         "shouldBe":"Found"
      },
      {  
         "type":"line",
         "status":"SUCCESS",
         "oid":-1,
         "identification":"Volume unit",
         "value":"true",
         "shouldBe":"Cubic metres"
      },
      {  
         "type":"line",
         "status":"SUCCESS",
         "oid":-1,
         "identification":"Volume unit prefix",
         "value":"NULL",
         "shouldBe":"None"
      },
      {  
         "type":"header",
         "text":"SITE"
      },
      {  
         "type":"line",
         "status":"SUCCESS",
         "oid":-1,
         "identification":"Number of sites",
         "value":"1 sites",
         "shouldBe":"Exactly 1 IfcSite object"
      },
      {  
         "type":"line",
         "status":"SUCCESS",
         "oid":917661,
         "identification":"Kadastrale aanduiding",
         "value":"Valid",
         "shouldBe":"Valid"
      },
      {  
         "type":"header",
         "text":"GEO_LOCATION"
      },
      {  
         "type":"line",
         "status":"SUCCESS",
         "oid":917661,
         "identification":"RefLatitude",
         "value":"Not null",
         "shouldBe":"Not null"
      },
      {  
         "type":"line",
         "status":"SUCCESS",
         "oid":917661,
         "identification":"RefLongitude",
         "value":"Not null",
         "shouldBe":"Not null"
      },
      {  
         "type":"line",
         "status":"ERROR",
         "oid":917661,
         "identification":"RefElevation",
         "value":null,
         "shouldBe":"Not null"
      },
      {  
         "type":"header",
         "text":"BUILDING"
      },
      {  
         "type":"line",
         "status":"SUCCESS",
         "oid":-1,
         "identification":"Number of buildings",
         "value":"1 IfcBuilding objects",
         "shouldBe":"> 0 IfcBuilding objects"
      },
      {  
         "type":"header",
         "text":"BUILDING STOREYS"
      },
      {  
         "type":"line",
         "status":"SUCCESS",
         "oid":-1,
         "identification":"Number of building storeys",
         "value":"2 IfcBuildingStorey objects",
         "shouldBe":"> 0 IfcBuildingStorey objects"
      },
      {  
         "type":"line",
         "status":"SUCCESS",
         "oid":1769686,
         "identification":"Valid building name",
         "value":"-1 Erdgeschoss",
         "shouldBe":""
      },
      {  
         "type":"line",
         "status":"SUCCESS",
         "oid":1835222,
         "identification":"Valid building name",
         "value":"0 Dachgeschoss",
         "shouldBe":""
      },
      {  
         "type":"line",
         "status":"SUCCESS",
         "oid":-1,
         "identification":"Storeys seem to be increasing with z-value and naming",
         "value":"",
         "shouldBe":""
      },
      {  
         "type":"header",
         "text":"BUILDING STOREYS"
      }
   ]
}

Known software using this format

TODO

  • The "oid" argument is useful, but too BIMserver specific, should maybe be "identifier" and be specified as something that uniquely identifies the object (like a GUID, oid or something else)