Machine-readable cardinalities

Hi,

I'm writing a code generator that converts Schema.org's types to PHP
classes.

I'm looking for a machine-friendly way to extract cardinalities of
properties.

Actually I've started to parse rdf:comment with regex but this is not
practical. Does someone has a better idea?

A notation such as the one used in Good Relations would be pleasant:
http://www.heppnetz.de/ontologies/goodrelations/v1.html#microdata_specification(see
10).

Thanks.



-- 
Kévin Dunglas

http://dunglas.fr

Received on Sunday, 26 January 2014 21:31:09 UTC