mida_vocabulary 0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +9 -0
- data/Rakefile +7 -0
- data/lib/mida_vocabulary/datatype/boolean.rb +30 -0
- data/lib/mida_vocabulary/datatype/enumeration.rb +28 -0
- data/lib/mida_vocabulary/datatype/float.rb +18 -0
- data/lib/mida_vocabulary/datatype/generic.rb +33 -0
- data/lib/mida_vocabulary/datatype/integer.rb +15 -0
- data/lib/mida_vocabulary/datatype/iso8601date.rb +25 -0
- data/lib/mida_vocabulary/datatype/number.rb +16 -0
- data/lib/mida_vocabulary/datatype/text.rb +15 -0
- data/lib/mida_vocabulary/datatype/url.rb +20 -0
- data/lib/mida_vocabulary/datatype.rb +17 -0
- data/lib/mida_vocabulary/propertydesc.rb +36 -0
- data/lib/mida_vocabulary/vocabularies/genericvocabulary.rb +13 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/aboutpage.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/accountingservice.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/administrativearea.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/adultentertainment.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/aggregateoffer.rb +34 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/aggregaterating.rb +33 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/airport.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/amusementpark.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/animalshelter.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/apartmentcomplex.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/aquarium.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/artgallery.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/article.rb +28 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/attorney.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/audioobject.rb +22 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/autobodyshop.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/autodealer.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/automatedteller.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/automotivebusiness.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/autopartsstore.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/autorental.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/autorepair.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/autowash.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/bakery.rb +23 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/bankorcreditunion.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/barorpub.rb +23 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/beach.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/beautysalon.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/bedandbreakfast.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/bikestore.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/blog.rb +24 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/blogposting.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/bodyofwater.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/book.rb +41 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/bookformattype.rb +16 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/bookstore.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/bowlingalley.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/brewery.rb +23 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/buddhisttemple.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/businessevent.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/busstation.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/busstop.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/cafeorcoffeeshop.rb +23 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/campground.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/canal.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/casino.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/catholicchurch.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/cemetery.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/checkoutpage.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/childcare.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/childrensevent.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/church.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/city.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/cityhall.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/civicstructure.rb +24 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/clothingstore.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/collectionpage.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/collegeoruniversity.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/comedyclub.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/comedyevent.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/computerstore.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/contactpage.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/contactpoint.rb +27 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/continent.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/conveniencestore.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/corporation.rb +20 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/country.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/courthouse.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/creativework.rb +219 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/crematorium.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/danceevent.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/dancegroup.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/dayspa.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/defenceestablishment.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/dentist.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/departmentstore.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/distance.rb +15 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/drycleaningorlaundry.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/duration.rb +13 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/educationalorganization.rb +24 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/educationevent.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/electrician.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/electronicsstore.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/elementaryschool.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/embassy.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/emergencyservice.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/employmentagency.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/energy.rb +15 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/entertainmentbusiness.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/enumeration.rb +15 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/event.rb +77 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/eventvenue.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/exercisegym.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/fastfoodrestaurant.rb +23 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/festival.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/financialservice.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/firestation.rb +23 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/florist.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/foodestablishment.rb +36 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/foodevent.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/furniturestore.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/gardenstore.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/gasstation.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/gatedresidencecommunity.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/generalcontractor.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/geocoordinates.rb +33 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/geoshape.rb +33 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/golfcourse.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/governmentbuilding.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/governmentoffice.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/governmentorganization.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/grocerystore.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/hairsalon.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/hardwarestore.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/healthandbeautybusiness.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/healthclub.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/highschool.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/hindutemple.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/hobbyshop.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/homeandconstructionbusiness.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/homegoodsstore.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/hospital.rb +23 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/hostel.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/hotel.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/housepainter.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/hvacbusiness.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/icecreamshop.rb +23 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/imagegallery.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/imageobject.rb +37 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/insuranceagency.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/intangible.rb +15 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/internetcafe.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/itemavailability.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/itemlist.rb +23 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/itempage.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/jewelrystore.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/jobposting.rb +81 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/lakebodyofwater.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/landform.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/landmarksorhistoricalbuildings.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/language.rb +15 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/legislativebuilding.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/library.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/liquorstore.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/literaryevent.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/localbusiness.rb +41 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/locksmith.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/lodgingbusiness.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/map.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/mass.rb +15 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/mediaobject.rb +94 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/medicalclinic.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/medicalorganization.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/mensclothingstore.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/middleschool.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/mobilephonestore.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/mosque.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/motel.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/motorcycledealer.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/motorcyclerepair.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/mountain.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/movie.rb +65 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/movierentalstore.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/movietheater.rb +23 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/movingcompany.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/museum.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/musicalbum.rb +26 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/musicevent.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/musicgroup.rb +38 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/musicplaylist.rb +29 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/musicrecording.rb +45 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/musicstore.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/musicvenue.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/musicvideoobject.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/nailsalon.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/newsarticle.rb +34 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/ngo.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/nightclub.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/notary.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/nutritioninformation.rb +86 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/oceanbodyofwater.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/offer.rb +69 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/offeritemcondition.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/officeequipmentstore.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/optician.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/organization.rb +96 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/outletstore.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/painting.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/park.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/parkingfacility.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/pawnshop.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/performingartstheater.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/performinggroup.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/person.rb +179 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/petstore.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/pharmacy.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/photograph.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/physician.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/place.rb +82 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/placeofworship.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/playground.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/plumber.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/policestation.rb +23 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/pond.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/postaladdress.rb +39 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/postoffice.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/preschool.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/product.rb +55 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/professionalservice.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/profilepage.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/publicswimmingpool.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/quantity.rb +15 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/radiostation.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/rating.rb +30 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/realestateagent.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/recipe.rb +61 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/recyclingcenter.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/reservoir.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/residence.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/restaurant.rb +23 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/review.rb +33 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/riverbodyofwater.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/roofingcontractor.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/rvpark.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/saleevent.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/scholarlyarticle.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/school.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/sculpture.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/seabodyofwater.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/searchresultspage.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/selfstorage.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/shoestore.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/shoppingcenter.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/singlefamilyresidence.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/sitenavigationelement.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/skiresort.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/socialevent.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/sportinggoodsstore.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/sportsactivitylocation.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/sportsclub.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/sportsevent.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/sportsteam.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/stadiumorarena.rb +23 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/state.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/store.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/structuredvalue.rb +15 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/subwaystation.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/synagogue.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/table.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/tattooparlor.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/taxistand.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/televisionstation.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/tenniscomplex.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/theaterevent.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/theatergroup.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/thing.rb +29 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/tireshop.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/touristattraction.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/touristinformationcenter.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/toystore.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/trainstation.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/travelagency.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/tvepisode.rb +77 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/tvseason.rb +58 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/tvseries.rb +87 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/userblocks.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/usercheckins.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/usercomments.rb +46 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/userdownloads.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/userinteraction.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/userlikes.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/userpagevisits.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/userplays.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/userplusones.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/usertweets.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/veterinarycare.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/videogallery.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/videoobject.rb +45 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/visualartsevent.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/volcano.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/waterfall.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/webpage.rb +46 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/webpageelement.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/wholesalestore.rb +21 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/winery.rb +23 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/wpadblock.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/wpfooter.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/wpheader.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/wpsidebar.rb +17 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg/zoo.rb +19 -0
- data/lib/mida_vocabulary/vocabularies/schemaorg.rb +1 -0
- data/lib/mida_vocabulary/vocabulary.rb +109 -0
- data/lib/mida_vocabulary.rb +10 -0
- data/spec/datatype/boolean_spec.rb +40 -0
- data/spec/datatype/enumeration_spec.rb +30 -0
- data/spec/datatype/float_spec.rb +21 -0
- data/spec/datatype/generic_spec.rb +44 -0
- data/spec/datatype/integer_spec.rb +26 -0
- data/spec/datatype/iso8601date_spec.rb +27 -0
- data/spec/datatype/number_spec.rb +21 -0
- data/spec/datatype/text_spec.rb +16 -0
- data/spec/datatype/url_spec.rb +27 -0
- data/spec/propertydesc_spec.rb +56 -0
- data/spec/spec_helper.rb +18 -0
- data/spec/vocabulary_spec.rb +271 -0
- metadata +397 -0
data/README.md
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'mida_vocabulary/datatype/generic'
|
2
|
+
|
3
|
+
module Mida
|
4
|
+
module DataType
|
5
|
+
|
6
|
+
# Boolean data type
|
7
|
+
# Provides access to TrueClass/FalseClass methods
|
8
|
+
class Boolean < Generic
|
9
|
+
|
10
|
+
# Raises +ArgumentError+ if value not valid boolean
|
11
|
+
def initialize(value)
|
12
|
+
@parsedValue = case value.downcase
|
13
|
+
when 'true' then true
|
14
|
+
when 'false' then false
|
15
|
+
else raise ::ArgumentError, 'Invalid value'
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
def to_s
|
20
|
+
@parsedValue.to_s.capitalize
|
21
|
+
end
|
22
|
+
|
23
|
+
def !@
|
24
|
+
!@parsedValue
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'mida_vocabulary/datatype/generic'
|
2
|
+
require 'mida_vocabulary/datatype/url'
|
3
|
+
require 'uri'
|
4
|
+
|
5
|
+
module Mida
|
6
|
+
module DataType
|
7
|
+
|
8
|
+
# Enumeration data type
|
9
|
+
# Provides access to underly DataType methods
|
10
|
+
# Subclasses should implement VALID_VALUES as an array of the form:
|
11
|
+
# [[DataType, Regexp], [DataType, Regexp]]
|
12
|
+
class Enumeration < Generic
|
13
|
+
|
14
|
+
Enumeration.reveal(:class)
|
15
|
+
|
16
|
+
# Raises +ArgumentError+ if value not valid value
|
17
|
+
def initialize(value)
|
18
|
+
value_is_valid = self.class::VALID_VALUES.any? do |valid_value|
|
19
|
+
@parsedValue = valid_value[0].parse(value)
|
20
|
+
@parsedValue.to_s =~ valid_value[1]
|
21
|
+
end
|
22
|
+
raise ArgumentError unless value_is_valid
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'mida_vocabulary/datatype/generic'
|
2
|
+
|
3
|
+
module Mida
|
4
|
+
module DataType
|
5
|
+
|
6
|
+
# Float data type
|
7
|
+
# Provides access to Float methods
|
8
|
+
class Float < Generic
|
9
|
+
|
10
|
+
# Raises +ArgumentError+ if value not valid
|
11
|
+
def initialize(value)
|
12
|
+
@parsedValue = ::Kernel.Float(value)
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'blankslate'
|
2
|
+
|
3
|
+
module Mida
|
4
|
+
module DataType
|
5
|
+
|
6
|
+
# The base DataType Parser
|
7
|
+
class Generic < BlankSlate
|
8
|
+
|
9
|
+
# Convenience method, same as +new+
|
10
|
+
def self.parse(value)
|
11
|
+
self.new(value)
|
12
|
+
end
|
13
|
+
|
14
|
+
def method_missing(name, *args, &block)
|
15
|
+
@parsedValue.send(name, *args, &block)
|
16
|
+
end
|
17
|
+
|
18
|
+
def to_s
|
19
|
+
@parsedValue.to_s
|
20
|
+
end
|
21
|
+
|
22
|
+
def to_yaml(options={})
|
23
|
+
to_s.to_yaml(options)
|
24
|
+
end
|
25
|
+
|
26
|
+
def ==(other)
|
27
|
+
@parsedValue.to_s.downcase == other.to_s.downcase
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Mida
|
2
|
+
module DataType
|
3
|
+
|
4
|
+
# Integer data type
|
5
|
+
# Provides access to Integer methods
|
6
|
+
class Integer < Generic
|
7
|
+
|
8
|
+
# Raises +ArgumentError+ if value not valid
|
9
|
+
def initialize(value)
|
10
|
+
@parsedValue = ::Kernel.Integer(value)
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'mida_vocabulary/datatype/generic'
|
2
|
+
require 'date'
|
3
|
+
|
4
|
+
module Mida
|
5
|
+
module DataType
|
6
|
+
|
7
|
+
# ISO 8601 Date data type
|
8
|
+
# Provides access to DateTime methods
|
9
|
+
class ISO8601Date < Generic
|
10
|
+
|
11
|
+
# Raises +ArgumentError+ if value not valid
|
12
|
+
def initialize(value)
|
13
|
+
@parsedValue = ::DateTime.iso8601(value)
|
14
|
+
rescue => e
|
15
|
+
raise ArgumentError, e
|
16
|
+
end
|
17
|
+
|
18
|
+
def to_s
|
19
|
+
@parsedValue.rfc822
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module Mida
|
2
|
+
module DataType
|
3
|
+
|
4
|
+
# Number data type
|
5
|
+
# Provides access to Float methods
|
6
|
+
class Number < Generic
|
7
|
+
|
8
|
+
# Raises +ArgumentError+ if value not valid
|
9
|
+
def initialize(value)
|
10
|
+
@parsedValue = ::Kernel.Float(value)
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'mida_vocabulary/datatype/generic'
|
2
|
+
require 'uri'
|
3
|
+
|
4
|
+
module Mida
|
5
|
+
module DataType
|
6
|
+
|
7
|
+
# URL data type
|
8
|
+
# Provides access to URI methods
|
9
|
+
class URL < Generic
|
10
|
+
|
11
|
+
# Raises +ArgumentError+ if value not valid url
|
12
|
+
def initialize(value)
|
13
|
+
raise ::ArgumentError unless value =~ ::URI::DEFAULT_PARSER.regexp[:ABS_URI]
|
14
|
+
@parsedValue = ::URI.parse(value)
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Mida
|
2
|
+
# Module to hold the various data types.
|
3
|
+
# Each DataType should be a module containing the class method: +extract+
|
4
|
+
# which returns the value extracted or raises an +ArgumentError+ exception
|
5
|
+
# if input value is not valid.
|
6
|
+
module DataType
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
require 'mida_vocabulary/datatype/boolean'
|
11
|
+
require 'mida_vocabulary/datatype/enumeration'
|
12
|
+
require 'mida_vocabulary/datatype/float'
|
13
|
+
require 'mida_vocabulary/datatype/integer'
|
14
|
+
require 'mida_vocabulary/datatype/iso8601date'
|
15
|
+
require 'mida_vocabulary/datatype/number'
|
16
|
+
require 'mida_vocabulary/datatype/text'
|
17
|
+
require 'mida_vocabulary/datatype/url'
|
@@ -0,0 +1,36 @@
|
|
1
|
+
module Mida
|
2
|
+
|
3
|
+
# Class used to describe a property
|
4
|
+
class PropertyDesc
|
5
|
+
def initialize(num, &block)
|
6
|
+
@num, @types = num, []
|
7
|
+
if block_given?
|
8
|
+
instance_eval(&block)
|
9
|
+
@types = [DataType::Text] unless @types.size >= 1
|
10
|
+
else
|
11
|
+
@types = [DataType::Text]
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
# What to extract for this property.
|
16
|
+
# This can be a datatype such as +:text+ or a +Vocabulary+.
|
17
|
+
# The types should be supplied in order of preference.
|
18
|
+
# If you want to say any type, then use +:any+ as the class
|
19
|
+
def extract(*types)
|
20
|
+
@types += types
|
21
|
+
end
|
22
|
+
|
23
|
+
# <b>DEPRECATED:</b> Please use +extract+ instead
|
24
|
+
def types(*types)
|
25
|
+
warn "[DEPRECATION] Mida::PropertyDesc#types is deprecated. "+
|
26
|
+
"Please use Mida::PropertyDesc#extract instead."
|
27
|
+
extract *types
|
28
|
+
end
|
29
|
+
|
30
|
+
def to_h
|
31
|
+
{num: @num, types: @types}
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'mida_vocabulary/vocabulary'
|
2
|
+
|
3
|
+
module Mida
|
4
|
+
module SchemaOrg
|
5
|
+
|
6
|
+
autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'
|
7
|
+
autoload :CreativeWork, 'mida_vocabulary/vocabularies/schemaorg/creativework'
|
8
|
+
autoload :WebPage, 'mida_vocabulary/vocabularies/schemaorg/webpage'
|
9
|
+
|
10
|
+
# Web page type: About page.
|
11
|
+
class AboutPage < Mida::Vocabulary
|
12
|
+
itemtype %r{http://schema.org/AboutPage}i
|
13
|
+
include_vocabulary Mida::SchemaOrg::Thing
|
14
|
+
include_vocabulary Mida::SchemaOrg::CreativeWork
|
15
|
+
include_vocabulary Mida::SchemaOrg::WebPage
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'mida_vocabulary/vocabulary'
|
2
|
+
|
3
|
+
module Mida
|
4
|
+
module SchemaOrg
|
5
|
+
|
6
|
+
autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'
|
7
|
+
autoload :Place, 'mida_vocabulary/vocabularies/schemaorg/place'
|
8
|
+
autoload :Organization, 'mida_vocabulary/vocabularies/schemaorg/organization'
|
9
|
+
autoload :LocalBusiness, 'mida_vocabulary/vocabularies/schemaorg/localbusiness'
|
10
|
+
|
11
|
+
# Accountancy business.
|
12
|
+
class AccountingService < Mida::Vocabulary
|
13
|
+
itemtype %r{http://schema.org/AccountingService}i
|
14
|
+
include_vocabulary Mida::SchemaOrg::Thing
|
15
|
+
include_vocabulary Mida::SchemaOrg::Place
|
16
|
+
include_vocabulary Mida::SchemaOrg::Organization
|
17
|
+
include_vocabulary Mida::SchemaOrg::LocalBusiness
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'mida_vocabulary/vocabulary'
|
2
|
+
|
3
|
+
module Mida
|
4
|
+
module SchemaOrg
|
5
|
+
|
6
|
+
autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'
|
7
|
+
autoload :Place, 'mida_vocabulary/vocabularies/schemaorg/place'
|
8
|
+
|
9
|
+
# A geographical region under the jurisdiction of a particular government.
|
10
|
+
class AdministrativeArea < Mida::Vocabulary
|
11
|
+
itemtype %r{http://schema.org/AdministrativeArea}i
|
12
|
+
include_vocabulary Mida::SchemaOrg::Thing
|
13
|
+
include_vocabulary Mida::SchemaOrg::Place
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'mida_vocabulary/vocabulary'
|
2
|
+
|
3
|
+
module Mida
|
4
|
+
module SchemaOrg
|
5
|
+
|
6
|
+
autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'
|
7
|
+
autoload :Place, 'mida_vocabulary/vocabularies/schemaorg/place'
|
8
|
+
autoload :Organization, 'mida_vocabulary/vocabularies/schemaorg/organization'
|
9
|
+
autoload :LocalBusiness, 'mida_vocabulary/vocabularies/schemaorg/localbusiness'
|
10
|
+
|
11
|
+
# An adult entertainment establishment.
|
12
|
+
class AdultEntertainment < Mida::Vocabulary
|
13
|
+
itemtype %r{http://schema.org/AdultEntertainment}i
|
14
|
+
include_vocabulary Mida::SchemaOrg::Thing
|
15
|
+
include_vocabulary Mida::SchemaOrg::Place
|
16
|
+
include_vocabulary Mida::SchemaOrg::Organization
|
17
|
+
include_vocabulary Mida::SchemaOrg::LocalBusiness
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
require 'mida_vocabulary/vocabulary'
|
2
|
+
|
3
|
+
module Mida
|
4
|
+
module SchemaOrg
|
5
|
+
|
6
|
+
autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'
|
7
|
+
autoload :Offer, 'mida_vocabulary/vocabularies/schemaorg/offer'
|
8
|
+
|
9
|
+
# When a single product that has different offers (for example, the same pair of shoes is offered by different merchants), then AggregateOffer can be used.
|
10
|
+
class AggregateOffer < Mida::Vocabulary
|
11
|
+
itemtype %r{http://schema.org/AggregateOffer}i
|
12
|
+
include_vocabulary Mida::SchemaOrg::Thing
|
13
|
+
include_vocabulary Mida::SchemaOrg::Offer
|
14
|
+
|
15
|
+
# The highest price of all offers available.
|
16
|
+
has_many 'highPrice' do
|
17
|
+
extract Mida::DataType::Number
|
18
|
+
extract Mida::DataType::Text
|
19
|
+
end
|
20
|
+
|
21
|
+
# The lowest price of all offers available.
|
22
|
+
has_many 'lowPrice' do
|
23
|
+
extract Mida::DataType::Number
|
24
|
+
extract Mida::DataType::Text
|
25
|
+
end
|
26
|
+
|
27
|
+
# The number of offers for the product.
|
28
|
+
has_many 'offerCount' do
|
29
|
+
extract Mida::DataType::Integer
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'mida_vocabulary/vocabulary'
|
2
|
+
|
3
|
+
module Mida
|
4
|
+
module SchemaOrg
|
5
|
+
|
6
|
+
autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'
|
7
|
+
autoload :Rating, 'mida_vocabulary/vocabularies/schemaorg/rating'
|
8
|
+
|
9
|
+
# The average rating based on multiple ratings or reviews.
|
10
|
+
class AggregateRating < Mida::Vocabulary
|
11
|
+
itemtype %r{http://schema.org/AggregateRating}i
|
12
|
+
include_vocabulary Mida::SchemaOrg::Thing
|
13
|
+
include_vocabulary Mida::SchemaOrg::Rating
|
14
|
+
|
15
|
+
# The item that is being reviewed/rated.
|
16
|
+
has_many 'itemReviewed' do
|
17
|
+
extract Mida::SchemaOrg::Thing
|
18
|
+
extract Mida::DataType::Text
|
19
|
+
end
|
20
|
+
|
21
|
+
# The count of total number of ratings.
|
22
|
+
has_many 'ratingCount' do
|
23
|
+
extract Mida::DataType::Number
|
24
|
+
end
|
25
|
+
|
26
|
+
# The count of total number of reviews.
|
27
|
+
has_many 'reviewCount' do
|
28
|
+
extract Mida::DataType::Number
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'mida_vocabulary/vocabulary'
|
2
|
+
|
3
|
+
module Mida
|
4
|
+
module SchemaOrg
|
5
|
+
|
6
|
+
autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'
|
7
|
+
autoload :Place, 'mida_vocabulary/vocabularies/schemaorg/place'
|
8
|
+
autoload :CivicStructure, 'mida_vocabulary/vocabularies/schemaorg/civicstructure'
|
9
|
+
|
10
|
+
# An airport.
|
11
|
+
class Airport < Mida::Vocabulary
|
12
|
+
itemtype %r{http://schema.org/Airport}i
|
13
|
+
include_vocabulary Mida::SchemaOrg::Thing
|
14
|
+
include_vocabulary Mida::SchemaOrg::Place
|
15
|
+
include_vocabulary Mida::SchemaOrg::CivicStructure
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'mida_vocabulary/vocabulary'
|
2
|
+
|
3
|
+
module Mida
|
4
|
+
module SchemaOrg
|
5
|
+
|
6
|
+
autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'
|
7
|
+
autoload :Place, 'mida_vocabulary/vocabularies/schemaorg/place'
|
8
|
+
autoload :Organization, 'mida_vocabulary/vocabularies/schemaorg/organization'
|
9
|
+
autoload :LocalBusiness, 'mida_vocabulary/vocabularies/schemaorg/localbusiness'
|
10
|
+
|
11
|
+
# An amusement park.
|
12
|
+
class AmusementPark < Mida::Vocabulary
|
13
|
+
itemtype %r{http://schema.org/AmusementPark}i
|
14
|
+
include_vocabulary Mida::SchemaOrg::Thing
|
15
|
+
include_vocabulary Mida::SchemaOrg::Place
|
16
|
+
include_vocabulary Mida::SchemaOrg::Organization
|
17
|
+
include_vocabulary Mida::SchemaOrg::LocalBusiness
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'mida_vocabulary/vocabulary'
|
2
|
+
|
3
|
+
module Mida
|
4
|
+
module SchemaOrg
|
5
|
+
|
6
|
+
autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'
|
7
|
+
autoload :Place, 'mida_vocabulary/vocabularies/schemaorg/place'
|
8
|
+
autoload :Organization, 'mida_vocabulary/vocabularies/schemaorg/organization'
|
9
|
+
autoload :LocalBusiness, 'mida_vocabulary/vocabularies/schemaorg/localbusiness'
|
10
|
+
|
11
|
+
# Animal shelter.
|
12
|
+
class AnimalShelter < Mida::Vocabulary
|
13
|
+
itemtype %r{http://schema.org/AnimalShelter}i
|
14
|
+
include_vocabulary Mida::SchemaOrg::Thing
|
15
|
+
include_vocabulary Mida::SchemaOrg::Place
|
16
|
+
include_vocabulary Mida::SchemaOrg::Organization
|
17
|
+
include_vocabulary Mida::SchemaOrg::LocalBusiness
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'mida_vocabulary/vocabulary'
|
2
|
+
|
3
|
+
module Mida
|
4
|
+
module SchemaOrg
|
5
|
+
|
6
|
+
autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'
|
7
|
+
autoload :Place, 'mida_vocabulary/vocabularies/schemaorg/place'
|
8
|
+
|
9
|
+
# Residence type: Apartment complex.
|
10
|
+
class ApartmentComplex < Mida::Vocabulary
|
11
|
+
itemtype %r{http://schema.org/ApartmentComplex}i
|
12
|
+
include_vocabulary Mida::SchemaOrg::Thing
|
13
|
+
include_vocabulary Mida::SchemaOrg::Place
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'mida_vocabulary/vocabulary'
|
2
|
+
|
3
|
+
module Mida
|
4
|
+
module SchemaOrg
|
5
|
+
|
6
|
+
autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'
|
7
|
+
autoload :Place, 'mida_vocabulary/vocabularies/schemaorg/place'
|
8
|
+
autoload :CivicStructure, 'mida_vocabulary/vocabularies/schemaorg/civicstructure'
|
9
|
+
|
10
|
+
# Aquarium.
|
11
|
+
class Aquarium < Mida::Vocabulary
|
12
|
+
itemtype %r{http://schema.org/Aquarium}i
|
13
|
+
include_vocabulary Mida::SchemaOrg::Thing
|
14
|
+
include_vocabulary Mida::SchemaOrg::Place
|
15
|
+
include_vocabulary Mida::SchemaOrg::CivicStructure
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'mida_vocabulary/vocabulary'
|
2
|
+
|
3
|
+
module Mida
|
4
|
+
module SchemaOrg
|
5
|
+
|
6
|
+
autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'
|
7
|
+
autoload :Place, 'mida_vocabulary/vocabularies/schemaorg/place'
|
8
|
+
autoload :Organization, 'mida_vocabulary/vocabularies/schemaorg/organization'
|
9
|
+
autoload :LocalBusiness, 'mida_vocabulary/vocabularies/schemaorg/localbusiness'
|
10
|
+
|
11
|
+
# An art gallery.
|
12
|
+
class ArtGallery < Mida::Vocabulary
|
13
|
+
itemtype %r{http://schema.org/ArtGallery}i
|
14
|
+
include_vocabulary Mida::SchemaOrg::Thing
|
15
|
+
include_vocabulary Mida::SchemaOrg::Place
|
16
|
+
include_vocabulary Mida::SchemaOrg::Organization
|
17
|
+
include_vocabulary Mida::SchemaOrg::LocalBusiness
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'mida_vocabulary/vocabulary'
|
2
|
+
|
3
|
+
module Mida
|
4
|
+
module SchemaOrg
|
5
|
+
|
6
|
+
autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'
|
7
|
+
autoload :CreativeWork, 'mida_vocabulary/vocabularies/schemaorg/creativework'
|
8
|
+
|
9
|
+
# An article, such as a news article or piece of investigative report. Newspapers and magazines have articles of many different types and this is intended to cover them all.
|
10
|
+
class Article < Mida::Vocabulary
|
11
|
+
itemtype %r{http://schema.org/Article}i
|
12
|
+
include_vocabulary Mida::SchemaOrg::Thing
|
13
|
+
include_vocabulary Mida::SchemaOrg::CreativeWork
|
14
|
+
|
15
|
+
# The actual body of the article.
|
16
|
+
has_many 'articleBody'
|
17
|
+
|
18
|
+
# Articles may belong to one or more 'sections' in a magazine or newspaper, such as Sports, Lifestyle, etc.
|
19
|
+
has_many 'articleSection'
|
20
|
+
|
21
|
+
# The number of words in the text of the Article.
|
22
|
+
has_many 'wordCount' do
|
23
|
+
extract Mida::DataType::Integer
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'mida_vocabulary/vocabulary'
|
2
|
+
|
3
|
+
module Mida
|
4
|
+
module SchemaOrg
|
5
|
+
|
6
|
+
autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'
|
7
|
+
autoload :Place, 'mida_vocabulary/vocabularies/schemaorg/place'
|
8
|
+
autoload :Organization, 'mida_vocabulary/vocabularies/schemaorg/organization'
|
9
|
+
autoload :LocalBusiness, 'mida_vocabulary/vocabularies/schemaorg/localbusiness'
|
10
|
+
|
11
|
+
# Professional service: Attorney.
|
12
|
+
class Attorney < Mida::Vocabulary
|
13
|
+
itemtype %r{http://schema.org/Attorney}i
|
14
|
+
include_vocabulary Mida::SchemaOrg::Thing
|
15
|
+
include_vocabulary Mida::SchemaOrg::Place
|
16
|
+
include_vocabulary Mida::SchemaOrg::Organization
|
17
|
+
include_vocabulary Mida::SchemaOrg::LocalBusiness
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'mida_vocabulary/vocabulary'
|
2
|
+
|
3
|
+
module Mida
|
4
|
+
module SchemaOrg
|
5
|
+
|
6
|
+
autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'
|
7
|
+
autoload :CreativeWork, 'mida_vocabulary/vocabularies/schemaorg/creativework'
|
8
|
+
autoload :MediaObject, 'mida_vocabulary/vocabularies/schemaorg/mediaobject'
|
9
|
+
|
10
|
+
# An audio file.
|
11
|
+
class AudioObject < Mida::Vocabulary
|
12
|
+
itemtype %r{http://schema.org/AudioObject}i
|
13
|
+
include_vocabulary Mida::SchemaOrg::Thing
|
14
|
+
include_vocabulary Mida::SchemaOrg::CreativeWork
|
15
|
+
include_vocabulary Mida::SchemaOrg::MediaObject
|
16
|
+
|
17
|
+
# If this MediaObject is an AudioObject or VideoObject, the transcript of that object.
|
18
|
+
has_many 'transcript'
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
end
|