use entity-statistics element from XML dump to generate content-types
There is an element <entity-statistics>
at the end of the XML dump that contains <entity>
elements for each object-class with a summary of its attributes and relations. The contents of this element could be used to generate the content-types for Drupal.
<entity object-class="SUBJECT" count="64">
<relation name="[SUBJECT]is_part_of" count="53"/>
<relation name="[TEXT]has_subject" count="4295"/>
<attribute name="name" count="64"/>
<relation name="is_part_of[SUBJECT]" count="53"/>
<attribute name="type" count="64"/>
</entity>
The relation tags contain both the outgoing relations with the object-class after the relation name and incoming relations with the object-class at the front. Each relation will show both as an incoming and as an outgoing relation.
Edited by Robert Casties