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

Version Path
iqvoc_skosxl-2.3.1 app/models/label/relation/skosxl/base.rb
iqvoc_skosxl-2.3.0 app/models/label/relation/skosxl/base.rb
iqvoc_skosxl-2.1.0 app/models/label/relation/skosxl/base.rb
iqvoc_skosxl-2.0.2 app/models/label/relation/skosxl/base.rb
iqvoc_skosxl-2.0.1 app/models/label/relation/skosxl/base.rb
iqvoc_skosxl-2.0.0 app/models/label/relation/skosxl/base.rb
iqvoc_skosxl-1.2.3 app/models/label/relation/skosxl/base.rb
iqvoc_skosxl-1.2.2 app/models/label/relation/skosxl/base.rb
iqvoc_skosxl-1.2.1 app/models/label/relation/skosxl/base.rb
iqvoc_skosxl-1.2.0 app/models/label/relation/skosxl/base.rb
iqvoc_skosxl-1.1.4 app/models/label/relation/skosxl/base.rb