Class: RDF::Vocab::OG

Inherits:
RDF::Vocabulary show all
Defined in:
lib/rdf/vocab/og.rb

Overview

Vocabulary for <ogp.me/ns#>

Instance Attribute Summary collapse

Method Summary

Methods inherited from RDF::Vocabulary

_orig_each, _orig_from_sym, each, from_sym, limit_vocabs, to_html, to_jsonld, to_ttl, value_to_html, vocab_map

Instance Attribute Details

#audioRDF::Vocabulary::Term (readonly)

A relevant audio URL for your object.

Returns:

  • (RDF::Vocabulary::Term)


6
7
8
# File 'lib/rdf/vocab/og.rb', line 6

def audio
  @audio
end

#descriptionRDF::Vocabulary::Term (readonly)

A one to two sentence description of your object.

Returns:

  • (RDF::Vocabulary::Term)


10
11
12
# File 'lib/rdf/vocab/og.rb', line 10

def description
  @description
end

#determinerRDF::Vocabulary::Term (readonly)

The word to precede the object’s title in a sentence (e.g., “the” in “the statue of liberty”). Valid values are “a”, “an”, “the”, “”, and “auto”.

Returns:

  • (RDF::Vocabulary::Term)


14
15
16
# File 'lib/rdf/vocab/og.rb', line 14

def determiner
  @determiner
end

#emailRDF::Vocabulary::Term (readonly)

DEPRECATED

Email of the contact for your object.

Returns:

  • (RDF::Vocabulary::Term)


18
19
20
# File 'lib/rdf/vocab/og.rb', line 18

def email
  @email
end

#fax_numberRDF::Vocabulary::Term (readonly)

DEPRECATED

Fax number of the contact for your object.

Returns:

  • (RDF::Vocabulary::Term)


22
23
24
# File 'lib/rdf/vocab/og.rb', line 22

def fax_number
  @fax_number
end

#imageRDF::Vocabulary::Term (readonly)

An image URL which should represent your object within the graph.

Returns:

  • (RDF::Vocabulary::Term)


26
27
28
# File 'lib/rdf/vocab/og.rb', line 26

def image
  @image
end

#isbnRDF::Vocabulary::Term (readonly)

DEPRECATED

International Standard Book Number for you object.

Returns:

  • (RDF::Vocabulary::Term)


30
31
32
# File 'lib/rdf/vocab/og.rb', line 30

def isbn
  @isbn
end

#latitudeRDF::Vocabulary::Term (readonly)

DEPRECATED

The latitude of the resource e.g., the latitude of a company.

Returns:

  • (RDF::Vocabulary::Term)


34
35
36
# File 'lib/rdf/vocab/og.rb', line 34

def latitude
  @latitude
end

#localeRDF::Vocabulary::Term (readonly)

A Unix locale in which this markup is rendered.

Returns:

  • (RDF::Vocabulary::Term)


38
39
40
# File 'lib/rdf/vocab/og.rb', line 38

def locale
  @locale
end

#localityRDF::Vocabulary::Term (readonly)

DEPRECATED

The locality of the resource e.g, “Palo Alto”

Returns:

  • (RDF::Vocabulary::Term)


42
43
44
# File 'lib/rdf/vocab/og.rb', line 42

def locality
  @locality
end

#longitudeRDF::Vocabulary::Term (readonly)

DEPRECATED

The longitude of the resource e.g., the longitude of a company.

Returns:

  • (RDF::Vocabulary::Term)


46
47
48
# File 'lib/rdf/vocab/og.rb', line 46

def longitude
  @longitude
end

#phone_numberRDF::Vocabulary::Term (readonly)

DEPRECATED

Phone number of the contact for your object.

Returns:

  • (RDF::Vocabulary::Term)


50
51
52
# File 'lib/rdf/vocab/og.rb', line 50

def phone_number
  @phone_number
end

#regionRDF::Vocabulary::Term (readonly)

DEPRECATED

The region of the resource e.g., “CA”

Returns:

  • (RDF::Vocabulary::Term)


54
55
56
# File 'lib/rdf/vocab/og.rb', line 54

def region
  @region
end

#site_nameRDF::Vocabulary::Term (readonly)

If your object is part of a larger web site, the name which should be displayed for the overall site. e.g., “IMDb”.

Returns:

  • (RDF::Vocabulary::Term)


58
59
60
# File 'lib/rdf/vocab/og.rb', line 58

def site_name
  @site_name
end

#titleRDF::Vocabulary::Term (readonly)

The title of the object as it should appear within the graph, e.g., “The Rock”.

Returns:

  • (RDF::Vocabulary::Term)


62
63
64
# File 'lib/rdf/vocab/og.rb', line 62

def title
  @title
end

#typeRDF::Vocabulary::Term (readonly)

The type of your object, e.g., “movie”. Depending on the type you specify, other properties may also be required.

Returns:

  • (RDF::Vocabulary::Term)


66
67
68
# File 'lib/rdf/vocab/og.rb', line 66

def type
  @type
end

#upcRDF::Vocabulary::Term (readonly)

DEPRECATED

Universal Product Code for your object.

Returns:

  • (RDF::Vocabulary::Term)


70
71
72
# File 'lib/rdf/vocab/og.rb', line 70

def upc
  @upc
end

#urlRDF::Vocabulary::Term (readonly)

The canonical URL of your object that will be used as its permanent ID in the graph, e.g., “www.imdb.com/title/tt0117500/”.

Returns:

  • (RDF::Vocabulary::Term)


74
75
76
# File 'lib/rdf/vocab/og.rb', line 74

def url
  @url
end

#videoRDF::Vocabulary::Term (readonly)

A relevant video URL for your object.

Returns:

  • (RDF::Vocabulary::Term)


78
79
80
# File 'lib/rdf/vocab/og.rb', line 78

def video
  @video
end