I'm designing an ontology to represent in RDF electoral results from a voting event (election or referendum).
I defined the following classes:
election
electoralList
candidate
electoralBody
and the following properties:
totalVotesCasted with domain electoralBody and range
int
.votesReceived, with domain electoralList / candidate and range
int
.dateOfElection, with domain election and range
date
.
I envisioned my RDF as something like this:
<Election rdf:about="election1">
<dateOfElection>2000-01-01</dateOfElection>
<totalVotesCasted>60</totalVotesCasted>
<electoralBody rdf:about="county1">
<candidate rdf:about="Peter Parker">
<votesReceived>12</votesReceived>
</candidate>
<candidate rdf:about="Clark Kent">
<votesReceived>34</votesReceived>
</candidate>
<candidate rdf:about="Bruce Wayne">
<votesReceived>14</votesReceived>
</candidate>
</electoralBody>
</rdf:Election>
<Election rdf:about="election2">
...
</rdf:Election>
Is this nested structure correct and advisable for structuring data in RDF?