openlogic-rdf 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. data/AUTHORS +3 -0
  2. data/CREDITS +9 -0
  3. data/README +361 -0
  4. data/UNLICENSE +24 -0
  5. data/VERSION +1 -0
  6. data/bin/rdf +18 -0
  7. data/etc/doap.nt +62 -0
  8. data/lib/df.rb +1 -0
  9. data/lib/rdf/cli.rb +200 -0
  10. data/lib/rdf/format.rb +383 -0
  11. data/lib/rdf/mixin/countable.rb +39 -0
  12. data/lib/rdf/mixin/durable.rb +31 -0
  13. data/lib/rdf/mixin/enumerable.rb +637 -0
  14. data/lib/rdf/mixin/indexable.rb +26 -0
  15. data/lib/rdf/mixin/inferable.rb +5 -0
  16. data/lib/rdf/mixin/mutable.rb +191 -0
  17. data/lib/rdf/mixin/queryable.rb +265 -0
  18. data/lib/rdf/mixin/readable.rb +15 -0
  19. data/lib/rdf/mixin/type_check.rb +21 -0
  20. data/lib/rdf/mixin/writable.rb +152 -0
  21. data/lib/rdf/model/graph.rb +263 -0
  22. data/lib/rdf/model/list.rb +731 -0
  23. data/lib/rdf/model/literal/boolean.rb +121 -0
  24. data/lib/rdf/model/literal/date.rb +73 -0
  25. data/lib/rdf/model/literal/datetime.rb +72 -0
  26. data/lib/rdf/model/literal/decimal.rb +86 -0
  27. data/lib/rdf/model/literal/double.rb +189 -0
  28. data/lib/rdf/model/literal/integer.rb +126 -0
  29. data/lib/rdf/model/literal/numeric.rb +184 -0
  30. data/lib/rdf/model/literal/time.rb +87 -0
  31. data/lib/rdf/model/literal/token.rb +47 -0
  32. data/lib/rdf/model/literal/xml.rb +39 -0
  33. data/lib/rdf/model/literal.rb +373 -0
  34. data/lib/rdf/model/node.rb +156 -0
  35. data/lib/rdf/model/resource.rb +28 -0
  36. data/lib/rdf/model/statement.rb +296 -0
  37. data/lib/rdf/model/term.rb +77 -0
  38. data/lib/rdf/model/uri.rb +570 -0
  39. data/lib/rdf/model/value.rb +133 -0
  40. data/lib/rdf/nquads.rb +152 -0
  41. data/lib/rdf/ntriples/format.rb +48 -0
  42. data/lib/rdf/ntriples/reader.rb +239 -0
  43. data/lib/rdf/ntriples/writer.rb +219 -0
  44. data/lib/rdf/ntriples.rb +104 -0
  45. data/lib/rdf/query/pattern.rb +329 -0
  46. data/lib/rdf/query/solution.rb +252 -0
  47. data/lib/rdf/query/solutions.rb +237 -0
  48. data/lib/rdf/query/variable.rb +221 -0
  49. data/lib/rdf/query.rb +404 -0
  50. data/lib/rdf/reader.rb +511 -0
  51. data/lib/rdf/repository.rb +389 -0
  52. data/lib/rdf/transaction.rb +161 -0
  53. data/lib/rdf/util/aliasing.rb +63 -0
  54. data/lib/rdf/util/cache.rb +139 -0
  55. data/lib/rdf/util/file.rb +38 -0
  56. data/lib/rdf/util/uuid.rb +36 -0
  57. data/lib/rdf/util.rb +6 -0
  58. data/lib/rdf/version.rb +19 -0
  59. data/lib/rdf/vocab/cc.rb +18 -0
  60. data/lib/rdf/vocab/cert.rb +13 -0
  61. data/lib/rdf/vocab/dc.rb +63 -0
  62. data/lib/rdf/vocab/dc11.rb +23 -0
  63. data/lib/rdf/vocab/doap.rb +45 -0
  64. data/lib/rdf/vocab/exif.rb +168 -0
  65. data/lib/rdf/vocab/foaf.rb +69 -0
  66. data/lib/rdf/vocab/geo.rb +13 -0
  67. data/lib/rdf/vocab/http.rb +26 -0
  68. data/lib/rdf/vocab/owl.rb +59 -0
  69. data/lib/rdf/vocab/rdfs.rb +17 -0
  70. data/lib/rdf/vocab/rsa.rb +12 -0
  71. data/lib/rdf/vocab/rss.rb +14 -0
  72. data/lib/rdf/vocab/sioc.rb +93 -0
  73. data/lib/rdf/vocab/skos.rb +36 -0
  74. data/lib/rdf/vocab/wot.rb +21 -0
  75. data/lib/rdf/vocab/xhtml.rb +9 -0
  76. data/lib/rdf/vocab/xsd.rb +58 -0
  77. data/lib/rdf/vocab.rb +215 -0
  78. data/lib/rdf/writer.rb +475 -0
  79. data/lib/rdf.rb +192 -0
  80. metadata +173 -0
@@ -0,0 +1,139 @@
1
+ module RDF; module Util
2
+ ##
3
+ # A `Hash`-like cache that holds only weak references to the values it
4
+ # caches, meaning that values contained in the cache can be garbage
5
+ # collected. This allows the cache to dynamically adjust to changing
6
+ # memory conditions, caching more objects when memory is plentiful, but
7
+ # evicting most objects if memory pressure increases to the point of
8
+ # scarcity.
9
+ #
10
+ # While this cache is something of an internal implementation detail of
11
+ # RDF.rb, some external libraries do currently make use of it as well,
12
+ # including [SPARQL::Algebra](http://sparql.rubyforge.org/algebra/) and
13
+ # [Spira](http://spira.rubyforge.org/). Do be sure to include any changes
14
+ # here in the RDF.rb changelog.
15
+ #
16
+ # @see RDF::URI.intern
17
+ # @see http://en.wikipedia.org/wiki/Weak_reference
18
+ # @since 0.2.0
19
+ class Cache
20
+ ##
21
+ # @private
22
+ def self.new(*args)
23
+ # JRuby doesn't support `ObjectSpace#_id2ref` unless the `-X+O`
24
+ # startup option is given. In addition, ObjectSpaceCache is very slow
25
+ # on Rubinius. On those platforms we'll default to using
26
+ # the WeakRef-based cache:
27
+ if RUBY_PLATFORM == 'java' || (defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx')
28
+ klass = WeakRefCache
29
+ else
30
+ klass = ObjectSpaceCache
31
+ end
32
+ cache = klass.allocate
33
+ cache.send(:initialize, *args)
34
+ cache
35
+ end
36
+
37
+ ##
38
+ # @param [Integer] capacity
39
+ def initialize(capacity = -1)
40
+ @capacity = capacity
41
+ @cache ||= {}
42
+ @index ||= {}
43
+ end
44
+
45
+ ##
46
+ # @return [Integer]
47
+ def size
48
+ @cache.size
49
+ end
50
+
51
+ ##
52
+ # @return [Boolean]
53
+ def has_capacity?
54
+ @capacity.equal?(-1) || @capacity > @cache.size
55
+ end
56
+
57
+ ##
58
+ # @param [Object] value
59
+ # @return [void]
60
+ def define_finalizer!(value)
61
+ ObjectSpace.define_finalizer(value, finalizer)
62
+ end
63
+
64
+ ##
65
+ # @return [Proc]
66
+ def finalizer
67
+ lambda { |object_id| @cache.delete(@index.delete(object_id)) }
68
+ end
69
+
70
+ ##
71
+ # This implementation relies on `ObjectSpace#_id2ref` and performs
72
+ # optimally on Ruby 1.8.x and 1.9.x; however, it does not work on JRuby
73
+ # by default since much `ObjectSpace` functionality on that platform is
74
+ # disabled unless the `-X+O` startup option is given.
75
+ #
76
+ # @see http://ruby-doc.org/ruby-1.9/classes/ObjectSpace.html
77
+ # @see http://eigenclass.org/hiki/weakhash+and+weakref
78
+ class ObjectSpaceCache < Cache
79
+ ##
80
+ # @param [Object] key
81
+ # @return [Object]
82
+ def [](key)
83
+ if value_id = @cache[key]
84
+ value = ObjectSpace._id2ref(value_id) rescue nil
85
+ end
86
+ end
87
+
88
+ ##
89
+ # @param [Object] key
90
+ # @param [Object] value
91
+ # @return [Object]
92
+ def []=(key, value)
93
+ if has_capacity?
94
+ @cache[key] = value.__id__
95
+ @index[value.__id__] = key
96
+ define_finalizer!(value)
97
+ end
98
+ value
99
+ end
100
+ end # ObjectSpaceCache
101
+
102
+ ##
103
+ # This implementation uses the `WeakRef` class from Ruby's standard
104
+ # library, and provides adequate performance on JRuby and on Ruby 1.9.x;
105
+ # however, it performs very suboptimally on Ruby 1.8.x.
106
+ #
107
+ # @see http://ruby-doc.org/ruby-1.9/classes/WeakRef.html
108
+ class WeakRefCache < Cache
109
+ ##
110
+ # @param [Integer] capacity
111
+ def initialize(capacity = -1)
112
+ require 'weakref' unless defined?(::WeakRef)
113
+ super
114
+ end
115
+
116
+ ##
117
+ # @param [Object] key
118
+ # @return [Object]
119
+ def [](key)
120
+ if (ref = @cache[key]) && ref.weakref_alive?
121
+ value = ref.__getobj__ rescue nil
122
+ end
123
+ end
124
+
125
+ ##
126
+ # @param [Object] key
127
+ # @param [Object] value
128
+ # @return [Object]
129
+ def []=(key, value)
130
+ if has_capacity?
131
+ @cache[key] = WeakRef.new(value)
132
+ @index[value.__id__] = key
133
+ define_finalizer!(value)
134
+ end
135
+ value
136
+ end
137
+ end # WeakRefCache
138
+ end # Cache
139
+ end; end # RDF::Util
@@ -0,0 +1,38 @@
1
+ module RDF; module Util
2
+ ##
3
+ # Wrapper for Kernel.open. Allows implementations to override to get
4
+ # more suffisticated behavior for HTTP resources (e.g., Accept header).
5
+ #
6
+ # Also supports the file: scheme for access to local files.
7
+ #
8
+ # Classes include this module when they represent some form of a file
9
+ # as a base resource, for instance an HTTP resource representing the
10
+ # serialization of a Graph.
11
+ #
12
+ # This module may be monkey-patched to allow for more options
13
+ # and interfaces.
14
+ #
15
+ # @since 0.2.4
16
+ module File
17
+ # Content
18
+ # @return [String]
19
+ attr_accessor :content_type
20
+
21
+ ##
22
+ # Open the file, returning or yielding an IO stream and mime_type.
23
+ #
24
+ # @param [String] filename_or_url to open
25
+ # @param [Hash{Symbol => Object}] options
26
+ # options are ignored in this implementation. Applications are encouraged
27
+ # to override this implementation to provide more control over HTTP
28
+ # headers and redirect following.
29
+ # @option options [Array, String] :headers
30
+ # HTTP Request headers.
31
+ # @return [IO] File stream
32
+ # @yield [IO] File stream
33
+ def self.open_file(filename_or_url, options = {}, &block)
34
+ filename_or_url = $1 if filename_or_url.to_s.match(/^file:(.*)$/)
35
+ Kernel.open(filename_or_url.to_s, &block)
36
+ end
37
+ end # File
38
+ end; end # RDF::Util
@@ -0,0 +1,36 @@
1
+ module RDF; module Util
2
+ ##
3
+ # Utilities for UUID handling.
4
+ #
5
+ # @see http://en.wikipedia.org/wiki/Universally_unique_identifier
6
+ module UUID
7
+ ##
8
+ # Generates a UUID string.
9
+ #
10
+ # This will make use of either the [UUID][] gem or the [UUIDTools][]
11
+ # gem, whichever of the two happens to be available.
12
+ #
13
+ # [UUID]: http://rubygems.org/gems/uuid
14
+ # [UUIDTools]: http://rubygems.org/gems/uuidtools
15
+ #
16
+ # @param [Hash{Symbol => Object}] options
17
+ # any options to pass through to the underlying UUID library
18
+ # @return [String] a UUID string
19
+ # @raise [LoadError] if no UUID library is available
20
+ # @see http://rubygems.org/gems/uuid
21
+ # @see http://rubygems.org/gems/uuidtools
22
+ def self.generate(options = {})
23
+ begin
24
+ require 'uuid'
25
+ ::UUID.generate(options[:format] || :default)
26
+ rescue LoadError => e
27
+ begin
28
+ require 'uuidtools'
29
+ ::UUIDTools::UUID.random_create.hexdigest
30
+ rescue LoadError => e
31
+ raise LoadError.new("no such file to load -- uuid or uuidtools")
32
+ end
33
+ end
34
+ end
35
+ end # UUID
36
+ end; end # RDF::Util
data/lib/rdf/util.rb ADDED
@@ -0,0 +1,6 @@
1
+ module RDF; module Util
2
+ autoload :Aliasing, 'rdf/util/aliasing'
3
+ autoload :Cache, 'rdf/util/cache'
4
+ autoload :File, 'rdf/util/file'
5
+ autoload :UUID, 'rdf/util/uuid'
6
+ end; end
@@ -0,0 +1,19 @@
1
+ module RDF
2
+ module VERSION
3
+ VERSION_FILE = File.expand_path("../../../VERSION", __FILE__)
4
+ MAJOR, MINOR, TINY, EXTRA = File.read(VERSION_FILE).chop.split(".")
5
+ STRING = [MAJOR, MINOR, TINY, EXTRA].compact.join('.')
6
+
7
+ ##
8
+ # @return [String]
9
+ def self.to_s() STRING end
10
+
11
+ ##
12
+ # @return [String]
13
+ def self.to_str() STRING end
14
+
15
+ ##
16
+ # @return [Array(Integer, Integer, Integer)]
17
+ def self.to_a() [MAJOR, MINOR, TINY] end
18
+ end
19
+ end
@@ -0,0 +1,18 @@
1
+ module RDF
2
+ ##
3
+ # Creative Commons (CC) vocabulary.
4
+ #
5
+ # @see http://creativecommons.org/ns
6
+ class CC < Vocabulary("http://creativecommons.org/ns#")
7
+ property :attributionName
8
+ property :attributionURL
9
+ property :deprecatedOn
10
+ property :jurisdiction
11
+ property :legalcode
12
+ property :license
13
+ property :morePermissions
14
+ property :permits
15
+ property :prohibits
16
+ property :requires
17
+ end
18
+ end
@@ -0,0 +1,13 @@
1
+ module RDF
2
+ ##
3
+ # W3 Authentication Certificates (CERT) vocabulary.
4
+ #
5
+ # @see http://www.w3.org/ns/auth/cert#
6
+ # @since 0.2.0
7
+ class CERT < Vocabulary("http://www.w3.org/ns/auth/cert#")
8
+ property :decimal
9
+ property :hex
10
+ property :identity
11
+ property :public_key
12
+ end
13
+ end
@@ -0,0 +1,63 @@
1
+ module RDF
2
+ ##
3
+ # Dublin Core (DC) vocabulary.
4
+ #
5
+ # @see http://dublincore.org/schemas/rdfs/
6
+ class DC < Vocabulary("http://purl.org/dc/terms/")
7
+ property :abstract
8
+ property :accessRights
9
+ property :accrualMethod
10
+ property :accrualPeriodicity
11
+ property :accrualPolicy
12
+ property :alternative
13
+ property :audience
14
+ property :available
15
+ property :bibliographicCitation
16
+ property :conformsTo
17
+ property :contributor
18
+ property :coverage
19
+ property :created
20
+ property :creator
21
+ property :date
22
+ property :dateAccepted
23
+ property :dateCopyrighted
24
+ property :dateSubmitted
25
+ property :description
26
+ property :educationLevel
27
+ property :extent
28
+ property :format
29
+ property :hasFormat
30
+ property :hasPart
31
+ property :hasVersion
32
+ property :identifier
33
+ property :instructionalMethod
34
+ property :isFormatOf
35
+ property :isPartOf
36
+ property :isReferencedBy
37
+ property :isReplacedBy
38
+ property :isRequiredBy
39
+ property :isVersionOf
40
+ property :issued
41
+ property :language
42
+ property :license
43
+ property :mediator
44
+ property :medium
45
+ property :modified
46
+ property :provenance
47
+ property :publisher
48
+ property :references
49
+ property :relation
50
+ property :replaces
51
+ property :requires
52
+ property :rights
53
+ property :rightsHolder
54
+ property :source
55
+ property :spatial
56
+ property :subject
57
+ property :tableOfContents
58
+ property :temporal
59
+ property :title
60
+ property :type
61
+ property :valid
62
+ end
63
+ end
@@ -0,0 +1,23 @@
1
+ module RDF
2
+ ##
3
+ # Dublin Core (DC) legacy vocabulary.
4
+ #
5
+ # @see http://dublincore.org/schemas/rdfs/
6
+ class DC11 < Vocabulary("http://purl.org/dc/elements/1.1/")
7
+ property :contributor
8
+ property :coverage
9
+ property :creator
10
+ property :date
11
+ property :description
12
+ property :format
13
+ property :identifier
14
+ property :language
15
+ property :publisher
16
+ property :relation
17
+ property :rights
18
+ property :source
19
+ property :subject
20
+ property :title
21
+ property :type
22
+ end
23
+ end
@@ -0,0 +1,45 @@
1
+ module RDF
2
+ ##
3
+ # Description of a Project (DOAP) vocabulary.
4
+ #
5
+ # @see http://trac.usefulinc.com/doap
6
+ class DOAP < Vocabulary("http://usefulinc.com/ns/doap#")
7
+ property :'anon-root'
8
+ property :audience
9
+ property :blog
10
+ property :browse
11
+ property :'bug-database'
12
+ property :category
13
+ property :created
14
+ property :description
15
+ property :developer
16
+ property :documenter
17
+ property :'download-mirror'
18
+ property :'download-page'
19
+ property :'file-release'
20
+ property :helper
21
+ property :homepage
22
+ property :implements
23
+ property :language
24
+ property :license
25
+ property :location
26
+ property :'mailing-list'
27
+ property :maintainer
28
+ property :module
29
+ property :name
30
+ property :'old-homepage'
31
+ property :os
32
+ property :platform
33
+ property :'programming-language'
34
+ property :release
35
+ property :repository
36
+ property :revision
37
+ property :screenshots
38
+ property :'service-endpoint'
39
+ property :shortdesc
40
+ property :tester
41
+ property :translator
42
+ property :vendor
43
+ property :wiki
44
+ end
45
+ end
@@ -0,0 +1,168 @@
1
+ module RDF
2
+ ##
3
+ # Exchangeable Image File Format (EXIF) vocabulary.
4
+ #
5
+ # @see http://www.w3.org/2003/12/exif/
6
+ class EXIF < Vocabulary("http://www.w3.org/2003/12/exif/ns#")
7
+ property :_unknown
8
+ property :apertureValue
9
+ property :artist
10
+ property :bitsPerSample
11
+ property :brightnessValue
12
+ property :cfaPattern
13
+ property :colorSpace
14
+ property :componentsConfiguration
15
+ property :compressedBitsPerPixel
16
+ property :compression
17
+ property :contrast
18
+ property :copyright
19
+ property :customRendered
20
+ property :datatype
21
+ property :date
22
+ property :dateAndOrTime
23
+ property :dateTime
24
+ property :dateTimeDigitized
25
+ property :dateTimeOriginal
26
+ property :deviceSettingDescription
27
+ property :digitalZoomRatio
28
+ property :exifAttribute
29
+ property :exifVersion
30
+ property :exif_IFD_Pointer
31
+ property :exifdata
32
+ property :exposureBiasValue
33
+ property :exposureIndex
34
+ property :exposureMode
35
+ property :exposureProgram
36
+ property :exposureTime
37
+ property :fNumber
38
+ property :fileSource
39
+ property :flash
40
+ property :flashEnergy
41
+ property :flashpixVersion
42
+ property :focalLength
43
+ property :focalLengthIn35mmFilm
44
+ property :focalPlaneResolutionUnit
45
+ property :focalPlaneXResolution
46
+ property :focalPlaneYResolution
47
+ property :gainControl
48
+ property :geo
49
+ property :gpsAltitude
50
+ property :gpsAltitudeRef
51
+ property :gpsAreaInformation
52
+ property :gpsDOP
53
+ property :gpsDateStamp
54
+ property :gpsDestBearing
55
+ property :gpsDestBearingRef
56
+ property :gpsDestDistance
57
+ property :gpsDestDistanceRef
58
+ property :gpsDestLatitude
59
+ property :gpsDestLatitudeRef
60
+ property :gpsDestLongitude
61
+ property :gpsDestLongitudeRef
62
+ property :gpsDifferential
63
+ property :gpsImgDirection
64
+ property :gpsImgDirectionRef
65
+ property :gpsInfo
66
+ property :gpsInfo_IFD_Pointer
67
+ property :gpsLatitude
68
+ property :gpsLatitudeRef
69
+ property :gpsLongitude
70
+ property :gpsLongitudeRef
71
+ property :gpsMapDatum
72
+ property :gpsMeasureMode
73
+ property :gpsProcessingMethod
74
+ property :gpsSatellites
75
+ property :gpsSpeed
76
+ property :gpsSpeedRef
77
+ property :gpsStatus
78
+ property :gpsTimeStamp
79
+ property :gpsTrack
80
+ property :gpsTrackRef
81
+ property :gpsVersionID
82
+ property :height
83
+ property :ifdPointer
84
+ property :imageConfig
85
+ property :imageDataCharacter
86
+ property :imageDataStruct
87
+ property :imageDescription
88
+ property :imageLength
89
+ property :imageUniqueID
90
+ property :imageWidth
91
+ property :interopInfo
92
+ property :interoperabilityIndex
93
+ property :interoperabilityVersion
94
+ property :interoperability_IFD_Pointer
95
+ property :isoSpeedRatings
96
+ property :jpegInterchangeFormat
97
+ property :jpegInterchangeFormatLength
98
+ property :length
99
+ property :lightSource
100
+ property :make
101
+ property :makerNote
102
+ property :maxApertureValue
103
+ property :meter
104
+ property :meteringMode
105
+ property :mm
106
+ property :model
107
+ property :oecf
108
+ property :orientation
109
+ property :photometricInterpretation
110
+ property :pictTaking
111
+ property :pimBrightness
112
+ property :pimColorBalance
113
+ property :pimContrast
114
+ property :pimInfo
115
+ property :pimSaturation
116
+ property :pimSharpness
117
+ property :pixelXDimension
118
+ property :pixelYDimension
119
+ property :planarConfiguration
120
+ property :primaryChromaticities
121
+ property :printImageMatching_IFD_Pointer
122
+ property :recOffset
123
+ property :referenceBlackWhite
124
+ property :relatedFile
125
+ property :relatedImageFileFormat
126
+ property :relatedImageLength
127
+ property :relatedImageWidth
128
+ property :relatedSoundFile
129
+ property :resolution
130
+ property :resolutionUnit
131
+ property :rowsPerStrip
132
+ property :samplesPerPixel
133
+ property :saturation
134
+ property :sceneCaptureType
135
+ property :sceneType
136
+ property :seconds
137
+ property :sensingMethod
138
+ property :sharpness
139
+ property :shutterSpeedValue
140
+ property :software
141
+ property :spatialFrequencyResponse
142
+ property :spectralSensitivity
143
+ property :stripByteCounts
144
+ property :stripOffsets
145
+ property :subSecTime
146
+ property :subSecTimeDigitized
147
+ property :subSecTimeOriginal
148
+ property :subjectArea
149
+ property :subjectDistance
150
+ property :subjectDistanceRange
151
+ property :subjectLocation
152
+ property :subseconds
153
+ property :tag_number
154
+ property :tagid
155
+ property :transferFunction
156
+ property :userComment
157
+ property :userInfo
158
+ property :versionInfo
159
+ property :whiteBalance
160
+ property :whitePoint
161
+ property :width
162
+ property :xResolution
163
+ property :yCbCrCoefficients
164
+ property :yCbCrPositioning
165
+ property :yCbCrSubSampling
166
+ property :yResolution
167
+ end
168
+ end
@@ -0,0 +1,69 @@
1
+ module RDF
2
+ ##
3
+ # Friend of a Friend (FOAF) vocabulary.
4
+ #
5
+ # @see http://xmlns.com/foaf/spec/
6
+ class FOAF < Vocabulary("http://xmlns.com/foaf/0.1/")
7
+ property :account
8
+ property :accountName
9
+ property :accountServiceHomepage
10
+ property :age
11
+ property :aimChatID
12
+ property :based_near
13
+ property :birthday
14
+ property :currentProject
15
+ property :depiction
16
+ property :depicts
17
+ property :dnaChecksum
18
+ property :familyName
19
+ property :family_name
20
+ property :firstName
21
+ property :fundedBy
22
+ property :geekcode
23
+ property :gender
24
+ property :givenName
25
+ property :givenname
26
+ property :holdsAccount
27
+ property :homepage
28
+ property :icqChatID
29
+ property :img
30
+ property :interest
31
+ property :isPrimaryTopicOf
32
+ property :jabberID
33
+ property :knows
34
+ property :lastName
35
+ property :logo
36
+ property :made
37
+ property :maker
38
+ property :mbox
39
+ property :mbox_sha1sum
40
+ property :member
41
+ property :membershipClass
42
+ property :msnChatID
43
+ property :myersBriggs
44
+ property :name
45
+ property :nick
46
+ property :openid
47
+ property :page
48
+ property :pastProject
49
+ property :phone
50
+ property :plan
51
+ property :primaryTopic
52
+ property :publications
53
+ property :schoolHomepage
54
+ property :sha1
55
+ property :skypeID
56
+ property :status
57
+ property :surname
58
+ property :theme
59
+ property :thumbnail
60
+ property :tipjar
61
+ property :title
62
+ property :topic
63
+ property :topic_interest
64
+ property :weblog
65
+ property :workInfoHomepage
66
+ property :workplaceHomepage
67
+ property :yahooChatID
68
+ end
69
+ end
@@ -0,0 +1,13 @@
1
+ module RDF
2
+ ##
3
+ # WGS84 Geo Positioning (GEO) vocabulary.
4
+ #
5
+ # @see http://www.w3.org/2003/01/geo/wgs84_pos#
6
+ # @since 0.2.0
7
+ class GEO < Vocabulary("http://www.w3.org/2003/01/geo/wgs84_pos#")
8
+ property :lat
9
+ property :location
10
+ property :long
11
+ property :lat_long
12
+ end
13
+ end
@@ -0,0 +1,26 @@
1
+ module RDF
2
+ ##
3
+ # Hypertext Transfer Protocol (HTTP) vocabulary.
4
+ #
5
+ # @see http://www.w3.org/2006/http
6
+ class HTTP < Vocabulary("http://www.w3.org/2006/http#")
7
+ property :abs_path
8
+ property :absoluteURI
9
+ property :authority
10
+ property :body
11
+ property :connectionAuthority
12
+ property :elementName
13
+ property :elementValue
14
+ property :fieldName
15
+ property :fieldValue
16
+ property :header
17
+ property :param
18
+ property :paramName
19
+ property :paramValue
20
+ property :request
21
+ property :requestURI
22
+ property :response
23
+ property :responseCode
24
+ property :version
25
+ end
26
+ end