Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
jio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Yaxel Perez
jio
Commits
193bf84d
Commit
193bf84d
authored
Feb 21, 2014
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
metadata.rst examples made more explicit
parent
9bc9aa75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
26 deletions
+15
-26
docs/metadata.rst
docs/metadata.rst
+15
-26
No files found.
docs/metadata.rst
View file @
193bf84d
...
@@ -249,8 +249,7 @@ Posting a webpage for jIO
...
@@ -249,8 +249,7 @@ Posting a webpage for jIO
.. code-block:: javascript
.. code-block:: javascript
jio.put({
jio.post({
"_id" : "...",
"identifier" : "http://domain/jio_home_page",
"identifier" : "http://domain/jio_home_page",
"format" : ["text/html", "52 kB"],
"format" : ["text/html", "52 kB"],
"date" : new Date(),
"date" : new Date(),
...
@@ -261,8 +260,7 @@ Posting a webpage for jIO
...
@@ -261,8 +260,7 @@ Posting a webpage for jIO
"description": "Simple guide to show the basics of jIO",
"description": "Simple guide to show the basics of jIO",
"category" : ["resilience/jio", "webpage"],
"category" : ["resilience/jio", "webpage"],
"language" : "en"
"language" : "en"
}, callbacks); // send content as attachment
}); // send content as attachment
Posting jIO library
Posting jIO library
...
@@ -270,8 +268,7 @@ Posting jIO library
...
@@ -270,8 +268,7 @@ Posting jIO library
.. code-block:: javascript
.. code-block:: javascript
jio.put({
jio.post({
"_id" : "...",
"identifier" : "jio.js",
"identifier" : "jio.js",
"date" : "2013-02-15",
"date" : "2013-02-15",
"format" : "application/javascript",
"format" : "application/javascript",
...
@@ -289,7 +286,7 @@ Posting jIO library
...
@@ -289,7 +286,7 @@ Posting jIO library
]
]
"description": "jIO is a client-side JavaScript library to " +
"description": "jIO is a client-side JavaScript library to " +
"manage documents across multiple storages."
"manage documents across multiple storages."
}
, callbacks
); // send content as attachment
}); // send content as attachment
Posting a webpage for interoperability levels
Posting a webpage for interoperability levels
...
@@ -297,8 +294,7 @@ Posting a webpage for interoperability levels
...
@@ -297,8 +294,7 @@ Posting a webpage for interoperability levels
.. code-block:: javascript
.. code-block:: javascript
jio.put({
jio.post({
"_id" : "...",
"identifier" : "http://dublincore.org/documents/" +
"identifier" : "http://dublincore.org/documents/" +
"interoperability-levels/",
"interoperability-levels/",
"date" : "2009-05-01",
"date" : "2009-05-01",
...
@@ -315,7 +311,7 @@ Posting a webpage for interoperability levels
...
@@ -315,7 +311,7 @@ Posting a webpage for interoperability levels
"involved in designing applications for " +
"involved in designing applications for " +
"different types of interoperability. [...]",
"different types of interoperability. [...]",
"language" : "en"
"language" : "en"
}
, callbacks
); // send content as attachment
}); // send content as attachment
Posting an image
Posting an image
...
@@ -323,8 +319,7 @@ Posting an image
...
@@ -323,8 +319,7 @@ Posting an image
.. code-block:: javascript
.. code-block:: javascript
jio.put({
jio.post({
"_id" : "...",
"identifier" : "new_york_city_at_night",
"identifier" : "new_york_city_at_night",
"format" : ["image/jpeg", "7.2 MB", "8192 x 4096 pixels"],
"format" : ["image/jpeg", "7.2 MB", "8192 x 4096 pixels"],
"date" : "1999",
"date" : "1999",
...
@@ -334,8 +329,7 @@ Posting an image
...
@@ -334,8 +329,7 @@ Posting an image
"subject" : ["New York"],
"subject" : ["New York"],
"description": "A photo of New York City taken just after midnight",
"description": "A photo of New York City taken just after midnight",
"coverage" : ["New York", "1996-1997"]
"coverage" : ["New York", "1996-1997"]
}, callbacks); // send content as attachment
}); // send content as attachment
Posting a book
Posting a book
...
@@ -343,8 +337,7 @@ Posting a book
...
@@ -343,8 +337,7 @@ Posting a book
.. code-block:: javascript
.. code-block:: javascript
jio.put({
jio.post({
"_id" : "...",
"identifier" : {
"identifier" : {
"scheme": "DCTERMS.URI",
"scheme": "DCTERMS.URI",
"content": "urn:ISBN:0385424728"
"content": "urn:ISBN:0385424728"
...
@@ -362,7 +355,7 @@ Posting a book
...
@@ -362,7 +355,7 @@ Posting a book
"scheme": "DCTERMS.RFC4646",
"scheme": "DCTERMS.RFC4646",
"content": "en-GB"
"content": "en-GB"
}
}
}
, callbakcs
); // send content as attachment
}); // send content as attachment
Posting a video
Posting a video
...
@@ -370,8 +363,7 @@ Posting a video
...
@@ -370,8 +363,7 @@ Posting a video
.. code-block:: javascript
.. code-block:: javascript
jio.put({
jio.post({
"_id" : "...",
"identifier" : "my_video",
"identifier" : "my_video",
"format" : ["video/ogg", "130 MB", "1080p", "20 seconds"],
"format" : ["video/ogg", "130 MB", "1080p", "20 seconds"],
"date" : getW3CDate(), // see tools below
"date" : getW3CDate(), // see tools below
...
@@ -379,8 +371,7 @@ Posting a video
...
@@ -379,8 +371,7 @@ Posting a video
"creator" : "Me",
"creator" : "Me",
"title" : "My life",
"title" : "My life",
"description": "A video about my life"
"description": "A video about my life"
}, callbacks); // send content as attachment
}); // send content as attachment
Posting a job announcement
Posting a job announcement
...
@@ -396,16 +387,14 @@ Posting a job announcement
...
@@ -396,16 +387,14 @@ Posting a job announcement
"publisher" : "Morgan Healey Ltd",
"publisher" : "Morgan Healey Ltd",
"title" : "E-Commerce Product Manager",
"title" : "E-Commerce Product Manager",
"subject" : "Job Announcement",
"subject" : "Job Announcement",
"description": "
...
",
"description": "
Announcement for e-commerce product manager job
",
"language" : "en-GB",
"language" : "en-GB",
"source" : "James@morganhealey.com",
"source" : "James@morganhealey.com",
"relation" : ["Totaljobs"],
"relation" : ["Totaljobs"],
"coverage" : "London, South East",
"coverage" : "London, South East",
"job_type" : "Permanent",
"job_type" : "Permanent",
"salary" : "£45,000 per annum"
"salary" : "£45,000 per annum"
}, callbacks); // send content as attachment
}); // send content as attachment
// result: http://www.totaljobs.com/JobSeeking/E-Commerce-Product-Manager_job55787655
Getting a list of document created by someone
Getting a list of document created by someone
...
@@ -415,7 +404,7 @@ With complex query:
...
@@ -415,7 +404,7 @@ With complex query:
.. code-block:: javascript
.. code-block:: javascript
jio.allDocs({"query": "creator: \"someone\""}
, callbacks
);
jio.allDocs({"query": "creator: \"someone\""});
Getting all documents about jIO in the resilience project
Getting all documents about jIO in the resilience project
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment