-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
39 lines (20 loc) · 1.01 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Classes in ZItem are meant to help work with the Zotero items that appear in the ATOM response. (See http://www.zotero.org/support/dev/server_api)
Part of the goal is to make them work well in conjunction with Jeremy Boggs' phpZotero class http://github.com/clioweb/phpZotero
An item can be passed either as a string of XML or as the DOMElement.
If you use the ARC framework for RDF (http://arc.semsol.org), the getItemAsRdf method will build BIBO-based rdf for the item
phpZoteroEntry
Methods:
getFields()
returns the array of the fields in the form array('fieldName' => 'fieldValue')
fieldExists($field)
checks if the field exists
getFieldValue($field)
gets the value of the field
getFieldsAsJSON()
returns the fields as a JSON object
getItemAsJSON()
returns all information about the item as a JSON object
getItemAsRdf($itemURI, $format)
$itemURI is the uri to assign to the item
$format is the serialization format for the RDF, one of 'rdf/xml' (default) , 'rdf/json', 'ntriples', 'turtle'
phpZoteroEntries: