I want to create an RDFS ontology describing some specific classes and properties. Then I want to add RDFa into HTML with the vocabulary I defined in RDFS. I know that we need to provide a URL to the vocabulary in RDFa, but I am not sure where to put my RDFS file in the web app or how to deploy the RDFS file.
When I add RDFa with schema.org, the HTML is like:
<div vocab="http://schema.org/" typeof="Person">
<span property="name">Jane Doe</span>
<img src="janedoe.jpg" property="image" alt="Photo of Jane Joe"/>
<span property="jobTitle">Professor</span>
<div property="address" typeof="PostalAddress">
<span property="streetAddress">
20341 Whitworth Institute
405 N. Whitworth
</span>
<span property="addressLocality">Seattle</span>,
<span property="addressRegion">WA</span>
<span property="postalCode">98052</span>
</div>
<span property="telephone">(425) 123-4567</span>
<a href="mailto:jane-doe@xyz.edu" property="email">
jane-doe@xyz.edu</a>
Jane's home page:
<a href="http://www.janedoe.com" property="url">janedoe.com</a>
Graduate students:
<a href="http://www.xyz.edu/students/alicejones.html" property="colleague">
Alice Jones</a>
<a href="http://www.xyz.edu/students/bobsmith.html" property="colleague">
Bob Smith</a>
</div>
In the beginning of the HTML
<div vocab="http://schema.org/" typeof="Person">
it states using the vocabulary Schema.org.
I want to ask how to use own RDFS. Also, how can I validate the RDFa is properly linked to my RDFS and written correctly