Skip to content

hxl-team/HXL-Validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HXL Validator

Simple API that validates RDF in Turtle notation for compliance with the Humanitarian eXchange Language (HXL) vocabulary (see hxl.humanitarianresponse.info/ns/). The HXL project is an initiative by the United Nations Office for the Coordination of Humanitarian Affairs.

For now, the validator is limited to

  • checking data in Turtle notation
  • checking whether the posted RDF is syntactically correct
  • checking for the presence of 'mandatory' properties, i.e., properties that are defined in the HXL vocabulary with an owl:minCardinality > 0.

Usage

POST the RDF data to check to the script. Optionally, set the format parameter to either 'html' or 'json'. If omitted, the script will return an html snippet.

Testing

Easiest via cURL. If the data to check is in a file test.ttl, call

curl -d @test.ttl http://myserver.com/HXL-Validator/?format=json

Dependencies

The HXL validator builds on EasyRDF, which is included in this repository.

About

Validates RDF code according to the HXL vocabulary.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages