{"id":20820980,"url":"https://github.com/hubgit/jquery-microdata","last_synced_at":"2025-05-07T16:11:40.707Z","repository":{"id":12911556,"uuid":"15588892","full_name":"hubgit/jquery-microdata","owner":"hubgit","description":"jQuery plugin for HTML Microdata","archived":false,"fork":false,"pushed_at":"2014-06-11T10:25:05.000Z","size":580,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"gh-pages","last_synced_at":"2025-05-07T16:11:31.705Z","etag":null,"topics":["html-microdata","jquery","jquery-plugin","microdata"],"latest_commit_sha":null,"homepage":"http://git.macropus.org/jquery-microdata/jquery.microdata.js","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hubgit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-02T17:03:28.000Z","updated_at":"2025-05-07T10:32:49.000Z","dependencies_parsed_at":"2022-09-10T17:11:39.953Z","dependency_job_id":null,"html_url":"https://github.com/hubgit/jquery-microdata","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hubgit%2Fjquery-microdata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hubgit%2Fjquery-microdata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hubgit%2Fjquery-microdata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hubgit%2Fjquery-microdata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hubgit","download_url":"https://codeload.github.com/hubgit/jquery-microdata/tar.gz/refs/heads/gh-pages","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252912997,"owners_count":21824066,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["html-microdata","jquery","jquery-plugin","microdata"],"created_at":"2024-11-17T22:10:53.704Z","updated_at":"2025-05-07T16:11:40.684Z","avatar_url":"https://github.com/hubgit.png","language":"JavaScript","readme":"# jQuery Microdata\n\nExtract and manipulate objects stored in [HTML Microdata](http://www.whatwg.org/specs/web-apps/current-work/multipage/microdata.html).\n\n[Demonstration](http://git.macropus.org/jquery-microdata/demo/)\n\n### Get all items of a certain type\n\n$(node).items(itemtype)\n\n    $('#albumlist').items('http://schema.org/MusicAlbum')\n\n### Get the property nodes of an item\n\nitem.property(property) =\u003e a set of jQuery nodes\n\n    $(node).property('name') =\u003e [ node ]\n\n    $(node).property('byArtist').eq(0).property('album') =\u003e [ node, node ]\n\n### Get the value of a property\n\nproperty.value() =\u003e the itemValue of the node(s)\n\n    $(node).property('name').value() =\u003e string\n\n    $(node).property('byArtist').eq(0).property('name').value() =\u003e string\n\n### Get the values of a property as an array\n\nproperty.values() =\u003e array of the itemValues of the nodes\n\n    $(node).property('name').values() =\u003e [ string, string ]\n\n### Set a property\n\nitem.property(property).value(value)\n\n    $(node).property('name').value('Yellow Submarine')\n\n### Set one of multiple properties with the same name\n\nitem.property(property).eq(index).value(value)\n\n    $(node).property('name').eq(1).value('Yellow Submarine')\n    \n## jQuery Things\n\nThe plugin also provides a convenience method for working with items (\"things\") where there is only a single instance of each property. This is analogous to [jQuery's `data` method](http://api.jquery.com/data/).\n\n### Get a property of an item\n\nitem.microdata(key)\n\n    $(node).microdata('name');\n\n### Set a property of an item\n\nitem.microdata(key, value)\n\n    $(node).microdata('name', 'The Beatles');\n\n### Set multiple properties of an item\n\nitem.microdata({ key: value })\n\n    $(node).microdata({\n        name: 'The Beatles',\n        url: 'https://en.wikipedia.org/wiki/The_Beatles'\n    });\n\n### Get all properties of a single item or a collection of matched items\n\ncollection.microdata()\n\n    $(node).microdata()\n    \n    $('#albumlist').items('http://schema.org/MusicAlbum').microdata()\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhubgit%2Fjquery-microdata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhubgit%2Fjquery-microdata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhubgit%2Fjquery-microdata/lists"}