Skip to content

Instantly share code, notes, and snippets.

@VladimirAlexiev
Created February 7, 2017 12:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VladimirAlexiev/f886c6f655f568481cfbfca79b5cae06 to your computer and use it in GitHub Desktop.
Save VladimirAlexiev/f886c6f655f568481cfbfca79b5cae06 to your computer and use it in GitHub Desktop.
NIEM CarCrash example in Turtle
@prefix exch: <http://example.com/CrashDriver/1.0/#> .
@prefix geo: <http://release.niem.gov/niem/adapters/geospatial/3.0/#> .
@prefix gml: <http://www.opengis.net/gml/3.2#> .
@prefix j: <http://release.niem.gov/niem/domains/jxdm/5.1/#> .
@prefix nc: <http://release.niem.gov/niem/niem-core/3.0/#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix structures: <http://release.niem.gov/niem/structures/3.0/#> .
@base <http://example.com/CrashDriver/data#> .
<P01>
exch:PersonFictionalCharacterIndicator true ;
nc:PersonBirthDate [ nc:Date "1893-05-04" ] ;
nc:PersonName [ nc:PersonGivenName [ rdf:value "Peter" ; nc:sequenceID 1] ;
nc:PersonMiddleName [ rdf:value "Death" ; nc:sequenceID 2] ;
nc:PersonMiddleName [ rdf:value "Bredon"; nc:sequenceID 3] ;
nc:PersonSurName "Wimsey" ;
nc:personNameCommentText "copied" ] .
<PT01>
gml:pos "51.835 -0.417" ;
gml:srsName "urn:ogc:def:crs:EPSG::4326" .
<CH01>
j:ChargeDescriptionText "Wild Driving" ;
j:ChargeFelonyIndicator false ;
j:JusticeMetadata <MD01> .
<MD01>
j:CriminalInformationIndicator true .
[ exch:CrashDriverInfo
[ j:Charge <CH01> ;
j:Crash [ j:CrashVehicle [ j:CrashDriver [ j:DriverLicense [ j:DriverLicenseCardIdentification [ nc:IdentificationID "A1234567" ] ;
nc:ItemLengthMeasure [ nc:MeasureDecimalValue 9.7E0 ] ;
nc:LengthUnitCode "CMT"] ;
nc:RoleOfPerson <P01> ] ] ;
nc:IncidentLocation [ geo:LocationGeospatialPoint [ gml:Point <PT01> ] ] ] ;
j:PersonChargeAssociation [ j:Charge <CH01> ;
j:JuvenileAsAdultIndicator true ;
nc:Person <P01>] ;
nc:Person <P01> ] ] .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment