
<object/(ObjectID)> a crm:E22_Man-Made_Object;
  puml:label """
select *, 
  replace(',','',ObjectID) as ObjectIDclean
  replace(',','',TitleID) as TitleIDclean
  (case TitleType of 'Primary Title' then Title else null end) as TitlePrimary
from titles.csv
""";
  rdfs:label "(TitlePrimary)";
  crm:P102_has_title <object/(ObjectIDclean)/title/(TitleIDclean)>.

<object/(ObjectIDclean)/title/(TitleIDclean)> a crm:E35_Title;
  rdf:value "(Title)";
  crm:P2_has_type <thesaurus/title/(TitleTypeIDclean)>;
  crm:P1_is_identified_by <object/(ObjectIDclean)/title/(TitleIDclean)/id>;
  crmx:display_order "(DisplayOrder)"^^xsd:integer.

<object/(ObjectIDclean)/title/(TitleIDclean)/id> a crm:E42_Identifier;
  rdf:value "(TitleIDclean)".
  
<thesaurus/title/(TitleTypeIDclean)> a skos:Concept;
  rdfs:label "(TitleType)";
  skos:exactMatch aat:SOMETHING.

aat:SOMETHING a puml:Inline.
