This section is non-normative.
이 항목은 비표준입니다.
Following are three examples of activities with varying degrees of detail.
다음은 다양한 세부 수준을 가진 액티비티들의 세 가지 예시입니다.
Each example is shown using the normative JSON serialization defined by this specification.
각 예시는 이 사양에서 정의된 표준 JSON 직렬화를 사용하여 표시됩니다.
'http://www.test.example/martin' created 'http://example.org/foo.jpg'
. No additional detail is given.
'http://www.test.example/martin'
이 'http://example.org/foo.jpg'
를 생성했음을 나타냄. 추가 세부사항은 제공되지 않는다.
Example 4{ "summary": "Martin created an image", }
예시 4{ "@context": "https://www.w3.org/ns/activitystreams", "summary": "Martin은 이미지를 생성했습니다", "type": "Create", "actor": "http://www.test.example/martin", "object": "http://example.org/foo.jpg" }
Example 5{ "summary": "Martin added an article to his blog", "name": "Why I love Activity Streams" "name": "Martin's Blog" } }
예시 5{ "@context": "https://www.w3.org/ns/activitystreams", "summary": "Martin은 자신의 블로그에 글을 올렸습니다", "type": "Add", "published": "2015-02-10T15:04:55Z", "actor": { "type": "Person", "id": "http://www.test.example/martin", "name": "Martin Smith", "url": "http://example.org/martin", "image": { "type": "Link", "href": "http://example.org/martin/image.jpg", "mediaType": "image/jpeg" } }, "object" : { "id": "http://www.test.example/blog/abc123/xyz", "type": "Article", "url": "http://example.org/blog/2011/02/entry", "name": "내가 Activity Streams를 사랑하는 이유" }, "target" : { "id": "http://example.org/blog/", "type": "OrderedCollection", "name": "Martin의 블로그" } }
Example 6{ "summary": "Martin's recent activities", "name": "My fluffy cat", }
Example 6{ "@context": "https://www.w3.org/ns/activitystreams", "summary": "Martin의 최근 활동", "type": "Collection", "totalItems": 1, "items" : [ { "type": "Add", "published": "2011-02-10T15:04:55Z", "generator": "http://example.org/activities-app", "nameMap": { "en": "Martin added a new image to his album.", "ga": "Martin phost le fisean nua a albam." }, "actor": { "type": "Person", "id": "http://www.test.example/martin", "name": "Martin Smith", "url": "http://example.org/martin", "image": { "type": "Link", "href": "http://example.org/martin/image", "mediaType": "image/jpeg", "width": 250, "height": 250 } }, "object" : { "name": "나의 복실복실한 고양이", "type": "Image", "id": "http://example.org/album/máiréad.jpg", "preview": { "type": "Link", "href": "http://example.org/album/máiréad.jpg", "mediaType": "image/jpeg" }, "url": [ { "type": "Link", "href": "http://example.org/album/máiréad.jpg", "mediaType": "image/jpeg" }, { "type": "Link", "href": "http://example.org/album/máiréad.png", "mediaType": "image/png" } ] }, "target": { "type": "Collection", "id": "http://example.org/album/", "nameMap": { "en": "Martin's Photo Album", "ga": "Grianghraif Mairtin" }, "image": { "type": "Link", "href": "http://example.org/album/thumbnail.jpg", "mediaType": "image/jpeg" } } } ] }