GraphStore`

OWLFunctional (.ofn)

背景

Import 与 Export

  • Import["file.ofn"] imports an OWL functional-style syntax file, returning an RDFStore.
  • Import["file.ofn",elements] imports the specified elements.
  • Export["file.ofn",expr] exports an RDFStore to an OWL functional-style syntax file.

参数

  • General Import elements:
  • "Elements" list of elements and options available in this file
    "Rules"full list of rules for each element and option
    "Options"list of rules for options, properties and settings
  • Data representation elements:
  • "RDFStore"an RDFStore
    "Prefixes"association of prefixes to namespace IRIs

选项

  • Export options:
  • "Prefixes"<||>produce prefixed names using these prefixes
  • A prefixed name has the form pre:local. The corresponding IRI is obtained by joining the namespace IRI associated with the prefix pre with the local part local.
  • "Prefixes" can be used to shorten an exported file. This option does not change the meaning of the RDFStore that the file represents.

范例

基本范例  (1)

Import an OWL ontology about bikes: