active-fedora 6.4.0.rc2 → 6.4.0.rc3
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4a1eb1e1a3c105cc030731793feb32cf8dc89302
|
|
4
|
+
data.tar.gz: 02b3147a121d84e90c304a09b9426fc6adaa5dd4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9f6d00fa9c985eef3e8628ff58d876b77fb877e1a455a03e0b1bfc7c12154d263c88d829e2846d26878b66951ba2853c1d750bfc85bd9c634ae059265f9e7a33
|
|
7
|
+
data.tar.gz: 0068afc60cf344bb57729888180c7037acbb283afa87d6dd155168c924b12ab738cd3f8123746744c5922f3530e9cb7feceb3a70106477af07fd7f73860ddcb9
|
|
@@ -286,11 +286,24 @@ module ActiveFedora
|
|
|
286
286
|
@config ||= {}.with_indifferent_access
|
|
287
287
|
end
|
|
288
288
|
|
|
289
|
+
# List of symbols representing the fields for this terminology.
|
|
290
|
+
# ':type' is excluded because it represents RDF.type and is a fixed value
|
|
291
|
+
# @see rdf_type
|
|
292
|
+
def fields
|
|
293
|
+
config.keys.map(&:to_sym) - [:type]
|
|
294
|
+
end
|
|
295
|
+
|
|
289
296
|
def map_predicates(&block)
|
|
290
297
|
builder = Builder.new(self)
|
|
291
298
|
builder.build &block
|
|
292
299
|
end
|
|
293
300
|
|
|
301
|
+
# Provide the value for the RDF.type of this node
|
|
302
|
+
# @example
|
|
303
|
+
# class Location
|
|
304
|
+
# include ActiveFedora::RdfObject
|
|
305
|
+
# rdf_type RDF::EbuCore.Location
|
|
306
|
+
# end
|
|
294
307
|
def rdf_type(uri_or_string=nil)
|
|
295
308
|
if uri_or_string
|
|
296
309
|
uri = uri_or_string.kind_of?(RDF::URI) ? uri_or_string : RDF::URI.new(uri_or_string)
|