the best approach seems to use the OWL version in RDF/XML syntax from
http://schema.org/docs/schemaorg.owl
Simply load this into any RDF framework (e.g. rdflib in Python), search for all classes (owl:Class) and then list all properties that include this class in their rdfs:domain.
Example:
from rdflib import *
g = Graph()
g.parse("http://schema.org/docs/schemaorg.owl", format="xml")
for c in g.subjects(RDF.type, OWL.Class):
if type(c) != BNode:
print c
returns the list of all classes, see below.
Best
Martin
--------------------------------------------------------
martin hepp
e-business & web science research group
universitaet der bundeswehr muenchen
e-mail: he...@ebusiness-unibw.org
phone: +49-(0)89-6004-4217
fax: +49-(0)89-6004-4620
www: http://www.unibw.de/ebusiness/ (group)
http://www.heppnetz.de/ (personal)
skype: mfhepp
twitter: mfhepp
Check out GoodRelations for E-Commerce on the Web of Linked Data!
=================================================================
* Project Main Page: http://purl.org/goodrelations/
http://schema.org/PetStore
http://schema.org/Organization
http://schema.org/ProfessionalService
http://schema.org/CreativeWork
http://schema.org/Quantity
http://schema.org/HairSalon
http://schema.org/Person
http://schema.org/NewsArticle
http://schema.org/MedicalOrganization
http://schema.org/UserDownloads
http://schema.org/TVSeries
http://schema.org/FastFoodRestaurant
http://schema.org/PublicSwimmingPool
http://schema.org/Canal
http://schema.org/PlaceOfWorship
http://schema.org/GasStation
http://schema.org/Plumber
http://schema.org/Physician
http://schema.org/FinancialService
http://schema.org/Float
http://schema.org/Blog
http://schema.org/Winery
http://schema.org/MusicAlbum
http://schema.org/MotorcycleRepair
http://schema.org/UserBlocks
http://schema.org/AggregateOffer
http://schema.org/SubwayStation
http://schema.org/DepartmentStore
http://schema.org/Place
http://schema.org/AdultEntertainment
http://schema.org/Hospital
http://schema.org/Hotel
http://schema.org/AggregateRating
http://schema.org/Crematorium
http://schema.org/SingleFamilyResidence
http://schema.org/ImageObject
http://schema.org/HinduTemple
http://schema.org/Sculpture
http://schema.org/DataType
http://schema.org/Beach
http://schema.org/ImageGallery
http://schema.org/LegislativeBuilding
http://schema.org/Reservoir
http://schema.org/TVSeason
http://schema.org/TouristAttraction
http://schema.org/Waterfall
http://schema.org/AboutPage
http://schema.org/UserInteraction
http://schema.org/RVPark
http://schema.org/BusStation
http://schema.org/PoliceStation
http://schema.org/Store
http://schema.org/GolfCourse
http://schema.org/NailSalon
http://schema.org/ConvenienceStore
http://schema.org/Corporation
http://schema.org/TaxiStand
http://schema.org/EmploymentAgency
http://schema.org/GroceryStore
http://schema.org/BikeStore
http://schema.org/FoodEvent
http://schema.org/AutoRepair
http://schema.org/UserLikes
http://schema.org/InsuranceAgency
http://schema.org/HighSchool
http://schema.org/HobbyShop
http://schema.org/BookFormatType
http://schema.org/InternetCafe
http://schema.org/Photograph
http://schema.org/PerformingArtsTheater
http://schema.org/Mosque
http://schema.org/WebPage
http://schema.org/GatedResidenceCommunity
http://schema.org/Movie
http://schema.org/TrainStation
http://schema.org/CheckoutPage
http://schema.org/RecyclingCenter
http://schema.org/SportsEvent
http://schema.org/GeneralContractor
http://schema.org/Airport
http://schema.org/GovernmentBuilding
http://schema.org/Notary
http://schema.org/UserComments
http://schema.org/Landform
http://schema.org/PostOffice
http://schema.org/Event
http://schema.org/IceCreamShop
http://schema.org/AccountingService
http://schema.org/StructuredValue
http://schema.org/SportsClub
http://schema.org/ExerciseGym
http://schema.org/Distance
http://schema.org/ScholarlyArticle
http://schema.org/ShoeStore
http://schema.org/LocalBusiness
http://schema.org/Optician
http://schema.org/Museum
http://schema.org/WPAdBlock
http://schema.org/RoofingContractor
http://schema.org/SiteNavigationElement
http://schema.org/GovernmentOrganization
http://schema.org/Integer
http://schema.org/TelevisionStation
http://schema.org/UserPlusOnes
http://schema.org/ComedyEvent
http://schema.org/LandmarksOrHistoricalBuildings
http://schema.org/EducationEvent
http://schema.org/RealEstateAgent
http://schema.org/SelfStorage
http://schema.org/ProfilePage
http://schema.org/HomeGoodsStore
http://schema.org/ArtGallery
http://schema.org/WebPageElement
http://schema.org/TheaterEvent
http://schema.org/School
http://schema.org/EntertainmentBusiness
http://schema.org/Number
http://schema.org/Zoo
http://schema.org/State
http://schema.org/BuddhistTemple
http://schema.org/Continent
http://schema.org/MotorcycleDealer
http://schema.org/AutoBodyShop
http://schema.org/VideoObject
http://schema.org/VeterinaryCare
http://schema.org/ChildrensEvent
http://schema.org/Church
http://schema.org/LiteraryEvent
http://schema.org/OfferItemCondition
http://schema.org/PostalAddress
http://schema.org/NGO
http://schema.org/Preschool
http://schema.org/WPSideBar
http://schema.org/Park
http://schema.org/RadioStation
http://schema.org/Book
http://schema.org/SkiResort
http://schema.org/ToyStore
http://schema.org/Bakery
http://schema.org/WPFooter
http://schema.org/Text
http://schema.org/MusicEvent
http://schema.org/AutomotiveBusiness
http://schema.org/MusicGroup
http://schema.org/UserPageVisits
http://schema.org/SportsActivityLocation
http://schema.org/BusinessEvent
http://schema.org/Painting
http://schema.org/Electrician
http://schema.org/RiverBodyOfWater
http://schema.org/MusicVideoObject
http://schema.org/TravelAgency
http://schema.org/Volcano
http://schema.org/BarOrPub
http://schema.org/TheaterGroup
http://schema.org/City
http://schema.org/Playground
http://schema.org/SocialEvent
http://schema.org/FurnitureStore
http://schema.org/LakeBodyOfWater
http://schema.org/ClothingStore
http://schema.org/AutoPartsStore
http://schema.org/AmusementPark
http://schema.org/AutoDealer
http://schema.org/MovieRentalStore
http://schema.org/AutomatedTeller
http://schema.org/OutletStore
http://schema.org/HealthAndBeautyBusiness
http://schema.org/DanceEvent
http://schema.org/MedicalClinic
http://schema.org/Intangible
http://schema.org/FoodEstablishment
http://schema.org/HomeAndConstructionBusiness
http://schema.org/PerformingGroup
http://schema.org/BlogPosting
http://schema.org/ItemAvailability
http://schema.org/Dentist
http://schema.org/Motel
http://schema.org/Review
http://schema.org/ContactPoint
http://schema.org/SportsTeam
http://schema.org/MobilePhoneStore
http://schema.org/MusicRecording
http://schema.org/GovernmentOffice
http://schema.org/MusicStore
http://schema.org/UserTweets
http://schema.org/Residence
http://schema.org/Country
http://schema.org/Aquarium
http://schema.org/MusicPlaylist
http://schema.org/MediaObject
http://schema.org/PawnShop
http://schema.org/SeaBodyOfWater
http://schema.org/Brewery
http://schema.org/BedAndBreakfast
http://schema.org/HardwareStore
http://schema.org/OfficeEquipmentStore
http://schema.org/ParkingFacility
http://schema.org/Mass
http://schema.org/Table
http://schema.org/MovingCompany
http://schema.org/HVACBusiness
http://schema.org/ComedyClub
http://schema.org/VideoGallery
http://schema.org/Rating
http://schema.org/NutritionInformation
http://schema.org/GeoCoordinates
http://schema.org/TVEpisode
http://schema.org/Synagogue
http://schema.org/Enumeration
http://schema.org/BeautySalon
http://schema.org/EmergencyService
http://schema.org/SportingGoodsStore
http://schema.org/OceanBodyOfWater
http://schema.org/MusicVenue
http://schema.org/EventVenue
http://schema.org/CatholicChurch
http://schema.org/AutoRental
http://schema.org/HousePainter
http://schema.org/Mountain
http://schema.org/Energy
http://schema.org/SaleEvent
http://schema.org/BookStore
http://schema.org/MensClothingStore
http://schema.org/CollegeOrUniversity
http://schema.org/ElectronicsStore
http://schema.org/Product
http://schema.org/Attorney
http://schema.org/BowlingAlley
http://schema.org/Casino
http://schema.org/Embassy
http://schema.org/TireShop
http://schema.org/Restaurant
http://schema.org/NightClub
http://schema.org/BusStop
http://schema.org/BankOrCreditUnion
http://schema.org/Article
http://schema.org/MiddleSchool
http://schema.org/Duration
http://schema.org/URL
http://schema.org/Courthouse
http://schema.org/AdministrativeArea
http://schema.org/Recipe
http://schema.org/EducationalOrganization
http://schema.org/MovieTheater
http://schema.org/DaySpa
http://schema.org/Locksmith
http://schema.org/Language
http://schema.org/TennisComplex
http://schema.org/Festival
http://schema.org/Map
http://schema.org/WPHeader
http://schema.org/DefenceEstablishment
http://schema.org/Date
http://schema.org/HealthClub
http://schema.org/Campground
http://schema.org/JewelryStore
http://schema.org/Cemetery
http://schema.org/CafeOrCoffeeShop
http://schema.org/Pharmacy
http://schema.org/Library
http://schema.org/Florist
http://schema.org/VisualArtsEvent
http://schema.org/ContactPage
http://schema.org/ChildCare
http://schema.org/Boolean
http://schema.org/LodgingBusiness
http://schema.org/UserPlays
http://schema.org/AutoWash
http://schema.org/CivicStructure
http://schema.org/AudioObject
http://schema.org/SearchResultsPage
http://schema.org/TouristInformationCenter
http://schema.org/LiquorStore
http://schema.org/Offer
http://schema.org/ShoppingCenter
http://schema.org/ApartmentComplex
http://schema.org/TattooParlor
http://schema.org/CollectionPage
http://schema.org/Pond
http://schema.org/UserCheckins
http://schema.org/BodyOfWater
http://schema.org/StadiumOrArena
http://schema.org/GardenStore
http://schema.org/ElementarySchool
http://schema.org/ComputerStore
http://schema.org/ItemPage
http://schema.org/AnimalShelter
http://schema.org/DanceGroup
http://schema.org/CityHall
http://schema.org/DryCleaningOrLaundry
http://schema.org/Thing
http://schema.org/ItemList
http://schema.org/FireStation
http://schema.org/Hostel
Yeah, so, RDF is fine (sure, I will not argue against that ;) but if
you're not on an RDF stack you can use our JSON dump [1] as I've done
in one of my projects [2] ...
Cheers,
Michael
[2] https://github.com/mhausenblas/web.instata/blob/master/web.instata.py
#L209
--
vLife Systems Ltd
Registered Office: The Meridian, 4 Copthall House, Station Square, Coventry, CV1 2FL
Registered in England and Wales No. 06477649
http://vlifesystems.com
You're welcome!
> Would be really great if all these resources can be linked from the
> schema.org site.
I agree.
Dear Schema.org sponsors, could you please add http://schema.rdfs.org
to http://schema.org/docs/documents.html?
Cheers,
Michael