initial version extracted from pirati-cz/gapi-rdf