Skip to content
Browse files

Merge pull request #8 from jcoyne/w3c_ma_ont

Added W3C Media Annotation vocabulary. Thanks for your contribution!
  • Loading branch information...
2 parents 6f9b267 + 8508ec0 commit 5f742d3005084a7283c64e5e954d5c855e027d03 @gkellogg gkellogg committed
Showing with 83 additions and 0 deletions.
  1. +78 −0 lib/rdf/vocab/ma.rb
  2. +5 −0 spec/vocabulary_spec.rb
View
78 lib/rdf/vocab/ma.rb
@@ -0,0 +1,78 @@
+module RDF
+ ##
+ # W3C Media Annotation vocabulary.
+ # @see www.w3.org/ns/ma-ont.rdf
+ class MA < Vocabulary("http://www.w3.org/ns/ma-ont#")
+ property :IsRatingOf
+ property :alternativeTitle
+ property :averageBitRate
+ property :collectionName
+ property :copyright
+ property :createdIn
+ property :creationDate
+ property :date
+ property :depictsFictionalLocation
+ property :description
+ property :duration
+ property :editDate
+ property :features
+ property :fragmentName
+ property :frameHeight
+ property :frameRate
+ property :frameSizeUnit
+ property :frameWidth
+ property :hasAccessConditions
+ property :hasAudioDescription
+ property :hasCaptioning
+ property :hasChapter
+ property :hasClassification
+ property :hasClassificationSystem
+ property :hasCompression
+ property :hasContributor
+ property :hasCreator
+ property :hasFormat
+ property :hasFragment
+ property :hasGenre
+ property :hasKeyword
+ property :hasLanguage
+ property :hasLocationCoordinateSystem
+ property :hasNamedFragment
+ property :hasPermissions
+ property :hasPolicy
+ property :hasPublished
+ property :hasPublisher
+ property :hasRating
+ property :hasRatingSystem
+ property :hasRelatedImage
+ property :hasRelatedLocation
+ property :hasRelatedResource
+ property :hasSigning
+ property :hasSource
+ property :hasSubtitling
+ property :hasTargetAudience
+ property :hasTrack
+ property :isChapterOf
+ property :isCopyrightedBy
+ property :isLocationRelatedTo
+ property :isMemberOf
+ property :isProvidedBy
+ property :isRelatedTo
+ property :isSourceOf
+ property :isTargetAudienceOf
+ property :locationAltitude
+ property :locationLatitude
+ property :locationLongitude
+ property :locationName
+ property :locator
+ property :mainOriginalTitle
+ property :numberOfTracks
+ property :ratingScaleMax
+ property :ratingScaleMin
+ property :ratingValue
+ property :recordDate
+ property :releaseDate
+ property :samplingRate
+ property :title
+ property :trackName
+ end
+end
View
5 spec/vocabulary_spec.rb
@@ -113,6 +113,11 @@
RDF::XSD.should be_a_vocabulary("http://www.w3.org/2001/XMLSchema#")
RDF::XSD.should have_properties("http://www.w3.org/2001/XMLSchema#", %w(NOTATION QName anyURI base64Binary boolean date dateTime decimal double duration float gDay gMonth gMonthDay gYear gYearMonth hexBinary string time ENTITIES ENTITY ID IDREF IDREFS NCName NMTOKEN NMTOKENS Name byte int integer language long negativeInteger nonNegativeInteger nonPositiveInteger normalizedString positiveInteger short token unsignedByte unsignedInt unsignedLong unsignedShort))
end
+
+ it "should support W3C Media Annotation Ontology" do
+ RDF::MA.should be_a_vocabulary("http://www.w3.org/ns/ma-ont#")
+ RDF::MA.should have_properties("http://www.w3.org/ns/ma-ont#", %w(IsRatingOf alternativeTitle averageBitRate collectionName copyright createdIn creationDate date depictsFictionalLocation description duration editDate features fragmentName frameHeight frameRate frameSizeUnit frameWidth hasAccessConditions hasAudioDescription hasCaptioning hasChapter hasClassification hasClassificationSystem hasCompression hasContributor hasCreator hasFormat hasFragment hasGenre hasKeyword hasLanguage hasLocationCoordinateSystem hasNamedFragment hasPermissions hasPolicy hasPublished hasPublisher hasRating hasRatingSystem hasRelatedImage hasRelatedLocation hasRelatedResource hasSigning hasSource hasSubtitling hasTargetAudience hasTrack isChapterOf isCopyrightedBy isLocationRelatedTo isMemberOf isProvidedBy isRelatedTo isSourceOf isTargetAudienceOf locationAltitude locationLatitude locationLongitude locationName locator mainOriginalTitle numberOfTracks ratingScaleMax ratingScaleMin ratingValue recordDate releaseDate samplingRate title trackName))
+ end
end
context "ad-hoc vocabularies" do

0 comments on commit 5f742d3

Please sign in to comment.
Something went wrong with that request. Please try again.