document.data | Returns the interface to the triples graph. |
---|---|
document.getElementsByType(uri) | Returns a list of element origins with the resolved type of uri |
document.getElementsBySubject(uri) | Returns a list of element origins that generated the subject uri |
document.getElementsByProperty(uri,value?) | Returns a list of element origins that generated a triple with the property uri with an optional matching value. |
getProperties(subject?) | Returns a list of property URIs for the subject. If the subject is absent, it returns all the properties. |
---|---|
getSubjects(property?,value?) | Returns a list of subject URIs. If the property or value are specified, the subject must have that property/value combination. |
getValues(subject?,property?) | Returns a list of object values. If the subject or property are specified, the values must be specific to the subject/property combination. |
setMapping(prefix,uri) | Sets a prefix mapping that can be used for CURIE values within the various API calls. |
document.data.graph | A complete API to the triple graph. |
---|---|
element.data | A element-level interface to the graph. |
element.data.id | The subject associated with the element (if any). |
element.data.types | The types associated with the element's subject. |
Alex Milowski
milowski@ischool.berkeley.edu
TTh - 12:45-13:45
School of Information, University of California, Berkeley
<div typeof="Person"> <p property="name">Alex Milowski</p> <p property="email">milowski@ischool.berkeley.edu</p> <p property="ischool:officeHours">TTh - 12:45-13:45</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> @prefix ischool: <http://ischool.berkeley.edu/> _:1 a schema:Person; schema:name "Alex Milowski"; schema:email "milowski@ischool.berkeley.edu"; ischool:officeHours "TTh - 12:45-13:45"; schema:affiliation <http://ischool.berkeley.edu/> . <http://ischool.berkeley.edu/> a schema:Organization ; schema:department "School of Information" ; schema:name "University of California, Berkeley" .