lspace.ns.vocab.schema.Accommodation.scala Maven / Gradle / Ivy
The newest version!
package lspace.ns.vocab.schema
import lspace.ns.vocab.schema._
import lspace.structure.{Property => LProperty, OntologyDef}
object Accommodation extends OntologyDef(
iri = "http://schema.org/Accommodation",
iris = Set("http://schema.org/Accommodation"),
label = "Accommodation",
comment = """An accommodation is a place that can accommodate human beings, e.g. a hotel room, a camping pitch, or a meeting room. Many accommodations are for overnight stays, but this is not a mandatory requirement.
For more specific types of accommodations not defined in schema.org, one can use additionalType with external vocabularies.
See also the dedicated document on the use of schema.org for marking up hotels and other forms of accommodations.""",
`@extends` = List(Place.ontology)
){
object keys extends lspace.ns.vocab.schema.Place.Properties{
lazy val floorSize = lspace.ns.vocab.schema.floorSize.property
lazy val numberOfRooms = lspace.ns.vocab.schema.numberOfRooms.property
lazy val permittedUsage = lspace.ns.vocab.schema.permittedUsage.property
lazy val petsAllowed = lspace.ns.vocab.schema.petsAllowed.property
}
override lazy val properties: List[LProperty] = List(floorSize, numberOfRooms, permittedUsage, petsAllowed)
trait Properties extends lspace.ns.vocab.schema.Place.Properties{
lazy val floorSize = lspace.ns.vocab.schema.floorSize.property
lazy val numberOfRooms = lspace.ns.vocab.schema.numberOfRooms.property
lazy val permittedUsage = lspace.ns.vocab.schema.permittedUsage.property
lazy val petsAllowed = lspace.ns.vocab.schema.petsAllowed.property
}
}