{"id":22402309,"url":"https://github.com/lblod/ember-rdfa-editor-address-plugin","last_synced_at":"2025-03-27T00:41:16.367Z","repository":{"id":57126447,"uuid":"199085117","full_name":"lblod/ember-rdfa-editor-address-plugin","owner":"lblod","description":"RDFa editor plugin to insert an address in the editor","archived":false,"fork":false,"pushed_at":"2019-10-04T13:33:42.000Z","size":135,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-03-04T11:02:17.184Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/lblod.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-26T22:02:20.000Z","updated_at":"2019-10-04T13:33:43.000Z","dependencies_parsed_at":"2022-08-24T06:20:21.087Z","dependency_job_id":null,"html_url":"https://github.com/lblod/ember-rdfa-editor-address-plugin","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lblod%2Fember-rdfa-editor-address-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lblod%2Fember-rdfa-editor-address-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lblod%2Fember-rdfa-editor-address-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lblod%2Fember-rdfa-editor-address-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lblod","download_url":"https://codeload.github.com/lblod/ember-rdfa-editor-address-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245760897,"owners_count":20667893,"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":[],"created_at":"2024-12-05T09:12:30.724Z","updated_at":"2025-03-27T00:41:16.352Z","avatar_url":"https://github.com/lblod.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"@lblod/ember-rdfa-editor-address-plugin\n==============================================================================\n\nRDFa editor plugin to insert an address in the editor.\n\n\nInstallation\n------------------------------------------------------------------------------\n\n```\nember install @lblod/ember-rdfa-editor-address-plugin\n```\n\n\nUsage\n------------------------------------------------------------------------------\n\nCurrently the plugin adds the following features to your RDFa editor:\n- insert of a new address at the current position/selection\n- update of an existing address\n- insert an address at an instructive\n- autocomplete an address\n\nThe plugin inserts an address node annotated with a URI and a type. The full address will be shown in the text.\n\nE.g.\n```\n\u003cdiv typeof=\"https://data.vlaanderen.be/ns/adres#Adres\" resource=\"https://data.vlaanderen.be/id/adres/216333\"\u003e\n    Kerkstraat 1, 1800 Vilvoorde\n\u003c/div\u003e\n```\n\n### Insert an address at the current position/selection\nClick a button that makes the dispatcher call the `suggestHints` function of the plugin. The user can search and select an address the hint card. The address will be inserted at the current position in the editor or replace the current selected content in case of a selection.\n\n### Update of an existing address\nWhen putting the cursor in an address context, a hint card will be shown to modify the address. The user can search and select a new address in the hint card. The new address will replace the existing address in the editor.\n\n### Insert an address at an instructive\nA document may contain an instructive to insert an address. A hint card will be shown at the location of the instructive. The user can search and select an address in the hint card. The instructive will be replaced with the selected address.\n\nCurrently only one instructive property is supported:\n```\n\u003cdiv property=\"http://mu.semte.ch/vocabularies/ext/insertAddress\"\u003eInsert address here\u003c/div\u003e\n```\n\nThe plugin matches on the `property` attribute. The tag name, attributes, content, ... of the instructive node can be freely set.\n\n### Autocomplete an address\nWhile typing in a specific context, the plugin will show hints at locations where an address is expected based on the text entered by the user. The user can search and select an address in the hint card. The highlighted content will be replaced with the selected address.\n\nCurrently the plugin will show hints in the following cases:\n- in context `besluit:Besluit` when the user types \"op de \"\n\nKnown issues\n------------------------------------------------------------------------------\n- Only isolated addresses can be inserted. They cannot be linked via a property to an existing context.\n- Autocompleting an address inside an existing text will replace all text that follows after the address\n- Addresses cannot be inserted at complex selections until supported by the Pernet API\n\nContributing\n------------------------------------------------------------------------------\n\nSee the [Contributing](CONTRIBUTING.md) guide for details.\n\n\nLicense\n------------------------------------------------------------------------------\n\nThis project is licensed under the [MIT License](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flblod%2Fember-rdfa-editor-address-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flblod%2Fember-rdfa-editor-address-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flblod%2Fember-rdfa-editor-address-plugin/lists"}