Sha256: 156775d5893d59267d959ae4665b6dceb04eb88cc69e7ff3df8abe2c22bb7e6d

Contents?: true

Size: 971 Bytes

Versions: 11

Compression:

Stored size: 971 Bytes

Contents

module Ldp::Uri

  def uri str
    RDF::URI.new("http://www.w3.org/ns/ldp#") + str
  end

  def resource
    uri("Resource")
  end

  def rdf_source
    uri("RDFSource")
  end

  def non_rdf_source
    uri("NonRDFSource")
  end

  def container
    uri("Container")
  end

  def basic_container
    uri("BasicContainer")
  end

  def direct_container
    uri("DirectContainer")
  end

  def indirect_container
    uri("IndirectContainer")
  end

  def contains
    uri("contains")
  end

  def page
    uri("Page")
  end

  def page_of
    uri("pageOf")
  end

  def next_page
    uri("nextPage")
  end

  def membership_predicate
    uri("membershipPredicate")
  end
  
  def prefer_empty_container
    uri("PreferEmptyContainer")
  end
  
  def prefer_membership
    uri("PreferMembership")
  end
  
  def prefer_containment
    uri("PreferContainment")
  end
  
  def has_member_relation
    uri("hasMemberRelation")
  end
  
  def member
    uri("member")
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ldp-0.4.1 lib/ldp/uri.rb
ldp-0.4.0 lib/ldp/uri.rb
ldp-0.3.1 lib/ldp/uri.rb
ldp-0.3.0 lib/ldp/uri.rb
ldp-0.2.3 lib/ldp/uri.rb
ldp-0.2.2 lib/ldp/uri.rb
ldp-0.2.1 lib/ldp/uri.rb
ldp-0.2.0 lib/ldp/uri.rb
ldp-0.1.0 lib/ldp/uri.rb
ldp-0.0.10 lib/ldp/uri.rb
ldp-0.0.9 lib/ldp/uri.rb