WOLFRAM

Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how
Wolfram Language & System Documentation Center
OWLFunctional (.ofn)

Background

Import & Export

Import Elements

Options

Examples  
Basic Examples  
See Also
GraphStore`

OWLFunctional (.ofn)

Background

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.

Import Elements

  • 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

Options

  • 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.

Examples

Basic Examples  (1)

Wolfram Language code: Needs["GraphStore`"]

Import an OWL ontology about bikes:

Wolfram Language code: ImportString[" Prefix(: = <http://example.org/>) Prefix(xsd: = <http://www.w3.org/2001/XMLSchema#>) Ontology( Declaration(Class(:Bike)) Declaration(DataProperty(:wheelCount)) EquivalentClasses( :Bike DataHasValue(:wheelCount \"2\"^^xsd:integer) ) DataPropertyAssertion(:wheelCount :laufmaschine \"2\"^^xsd:integer) DataPropertyAssertion(:wheelCount :unicycle \"1\"^^xsd:integer) ) ", "OWLFunctional"]

See Also

Formats: Turtle   JSONLD   RDFXML

Top [フレーム]

AltStyle によって変換されたページ (->オリジナル) /