Translating OKM to RDF

From MWCSWiki

Jump to: navigation, search

OKM interface data -> our DB(RDF)

OKM operationRDF store equivalent
Create an object
  • Add a resource for object
  • Triple: resource type owl:Thing
  • Create the creation event (CE):
    • Triple: CE subject user
    • Triple: CE predicate created
    • Triple: CE object resource
    • Triple: CE time date
Add a role
  • If necessary:
    • add a resource for the role
    • Triple: role rdfs:type class
  • Create the roleplayer statement (RS):
    • Triple: RS type statement
    • Triple: RS subject resource
    • Triple: RS predicate type
    • Triple: RS object role
  • Add a resource for the roleplayer assertion event (RAE):
    • Triple: RAE type statement
    • Triple: RAE subject user
    • Triple: RAE predicate said
    • Triple: RAE object RS
    • Triple: RAE time date
Add non-existent field
  • Triple: field type DataProperty (is this necessary with Jena?)
  • Triple: rolefield subProperty field
  • Triple: rolefield domain role
  • Triple: rolefield range XSD:integer or XSD:string
  • (Follow add existing field flow.)
Add value for existing field
  • Create the field statement (FS):
    • Triple: FS type statement
    • Triple: FS subject resource
    • Triple: FS predicate field
    • Triple: FS object (literal) value
  • Create the user said field statement (USFS):
    • Triple: USFS type statement
    • Triple: USFS subject user
    • Triple: USFS predicate said
    • Triple: USFS object FS
    • Triple: USFS time date
Add non-existent relationship
(i.e., add a ModeBinding)
  • Triple: action type ObjectProperty (is this necessary with Jena?)
  • Triple: roleactionrole subProperty action
  • Triple: roleactionrole domain role
  • Triple: roleactionrole range theOtherRole
  • (Follow add existing relationship flow.)
Add relationship for existing relationship type
  • Create the relationship statement (RS):
    • Triple: RS type statement
    • Triple: RS subject resource
    • Triple: RS predicate roleactionrole
    • Triple: RS object otherResource
  • Create the user said relationship statement (USRS):
    • Triple: USRS type statement
    • Triple: USRS subject user
    • Triple: USRS predicate said
    • Triple: USRS object RS
    • Triple: USRS time date

External RDF -> our DB (RDF)

Exporting our DB(RDF) -> external RDF

  • De-reify all triples asserted by certain view(s)