diff --git a/lib/ld4l/foaf_rdf.rb b/lib/ld4l/foaf_rdf.rb index e4f3fa4..3f06b01 100644 --- a/lib/ld4l/foaf_rdf.rb +++ b/lib/ld4l/foaf_rdf.rb @@ -32,6 +32,7 @@ def self.configure # autoload classes autoload :Configuration, 'ld4l/foaf_rdf/configuration' autoload :Person, 'ld4l/foaf_rdf/person' + autoload :Agent, 'ld4l/foaf_rdf/agent' def self.class_from_string(class_name, container_class=Kernel) container_class = container_class.name if container_class.is_a? Module diff --git a/lib/ld4l/foaf_rdf/agent.rb b/lib/ld4l/foaf_rdf/agent.rb new file mode 100644 index 0000000..cd031ca --- /dev/null +++ b/lib/ld4l/foaf_rdf/agent.rb @@ -0,0 +1,13 @@ +module LD4L + module FoafRDF + class Agent < ActiveTriples::Resource + + class << self; attr_reader :localname_prefix end + @localname_prefix="a" + + configure :type => RDF::FOAF.Agent, :base_uri => LD4L::FoafRDF.configuration.base_uri, :repository => :default + + property :label, :predicate => RDF::RDFS.label + end + end +end diff --git a/lib/ld4l/foaf_rdf/version.rb b/lib/ld4l/foaf_rdf/version.rb index e9b0b78..4b5cd1e 100644 --- a/lib/ld4l/foaf_rdf/version.rb +++ b/lib/ld4l/foaf_rdf/version.rb @@ -1,5 +1,5 @@ module LD4L module FoafRDF - VERSION = "0.0.6" + VERSION = "0.0.7" end end