Module: DataMapper::Semantic::InstanceMethods

Defined in:
lib/dm-semantic/functions.rb

Instance Method Summary collapse

Instance Method Details

#to_rdf(format = :xml) ⇒ String

Export a representation of the instance in RDF.

Example

Friend.first.to_rdf # returns the first Friend model instance in RDF using its ontology

Returns


Parameters:

  • format (Symbol) (defaults to: :xml)

    format of the OWL-RDF output (:xml, :turtle, or :json). Defaults to :turtle

Returns:

  • (String)

    the RDF representation in the requested serialization format.

Author:

  • Pius Uzamere



160
161
162
# File 'lib/dm-semantic/functions.rb', line 160

def to_rdf(format = :xml)
  raise "not yet implemented"
end