Module: ActsAsRdf::InstanceMethods
- Defined in:
- lib/acts_as_rdf.rb
Overview
All the methods available to a record that has had acts_as_rdf
specified.
Instance Method Summary collapse
-
#to_rdf(host = "http://localhost", format = :rdfxml) ⇒ Object
current tested formats are rdfxml, turtle, ntriples.
Instance Method Details
#to_rdf(host = "http://localhost", format = :rdfxml) ⇒ Object
current tested formats are rdfxml, turtle, ntriples
43 44 45 46 |
# File 'lib/acts_as_rdf.rb', line 43 def to_rdf(host = "http://localhost", format = :rdfxml) graph = to_graph(host) return to_output(graph, host, format) end |