Sha256: 11df1b18074edcca80986f909caba13e8f5b04266b2c8d30491f739d100b6130
Contents?: true
Size: 459 Bytes
Versions: 11
Compression:
Stored size: 459 Bytes
Contents
class Label::Relation::SKOSXL::Base < Label::Relation::Base self.rdf_namespace = 'skosxl' def build_rdf(document, subject) pred = self.class == Label::Relation::SKOSXL::Base ? :labelRelation : self.rdf_predicate raise "Match::SKOS::Base#build_rdf: Class #{self.class.name} needs to define self.rdf_namespace and self.rdf_predicate." unless pred subject.send(self.rdf_namespace.camelcase).send(pred, IqRdf.build_uri(range.origin)) end end
Version data entries
11 entries across 11 versions & 1 rubygems