Open alexmilowski opened 9 years ago
This has been resolved right?
Running
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
</head>
<body>
<div vocab="http://schema.org/">
<div typeof="Person">
<p property="name">Alex Milowski</p>
<div property="affiliation" resource="http://ischool.berkeley.edu/" typeof="Organization">
<p><span property="department">School of Information</span>, <span property="name">University of California, Berkeley</span></p>
</div>
</div>
</div>
<script src="green-turtle/build/RDFa.js"></script>
</body>
</html>
Produces (document.data.graph.toString()
in the console) the right data:
_:1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Person>;
<http://schema.org/name> "Alex Milowski";
<http://schema.org/affiliation> <http://ischool.berkeley.edu/> .
<http://ischool.berkeley.edu/> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Organization>;
<http://schema.org/department> "School of Information";
<http://schema.org/name> "University of California, Berkeley" .
In the follow example, the schema:Organization typed child doesn't not have the right .data value on the element. It has the schema:Person instance instead of its own.