{"id":13555737,"url":"https://github.com/alexmilowski/green-turtle","last_synced_at":"2025-12-18T03:59:29.312Z","repository":{"id":10842777,"uuid":"13123154","full_name":"alexmilowski/green-turtle","owner":"alexmilowski","description":"An RDFa 1.1. implementation for browsers.","archived":false,"fork":false,"pushed_at":"2016-06-14T19:34:18.000Z","size":16137,"stargazers_count":56,"open_issues_count":8,"forks_count":16,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-03T08:38:04.871Z","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/alexmilowski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-26T13:29:55.000Z","updated_at":"2024-03-31T23:58:48.000Z","dependencies_parsed_at":"2022-08-29T13:31:00.588Z","dependency_job_id":null,"html_url":"https://github.com/alexmilowski/green-turtle","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/alexmilowski/green-turtle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexmilowski%2Fgreen-turtle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexmilowski%2Fgreen-turtle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexmilowski%2Fgreen-turtle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexmilowski%2Fgreen-turtle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexmilowski","download_url":"https://codeload.github.com/alexmilowski/green-turtle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexmilowski%2Fgreen-turtle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27790820,"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","status":"online","status_checked_at":"2025-12-18T02:00:09.725Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-08-01T12:03:23.135Z","updated_at":"2025-12-18T03:59:29.297Z","avatar_url":"https://github.com/alexmilowski.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","others"],"sub_categories":[],"readme":"# Green Turtle\n\nAn RDFa 1.1 implementation in JavaScript for browsers.\n\nNote: This project has transitioned from its former [Google Code project](http://code.google.com/p/green-turtle).\n\n## Conformance\n\nGreen Turtle passes all the tests for XML, XHTML1, XHTML5, HTML4, and HTML5 as provided by the [RDFa WG](http://rdfa.info/test-suite/) except for the following notable issues:\n\n * [XML Test 0332](http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0332.xml) uses a bare `lang` attribute instead of an `xml:lang` attribute.  I believe this is a bug in the test.  Green Turtle does the right thing with respect to `xml:lang` attributes in XML and `lang` attributes in HTML.  A `lang` attribute in arbitrary XML has no special meaning.\n * [XHTML1 Test 0198](http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0198.xhtml) and [XHTML5 Test 0198](http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0198.xhtml) both have extra namespaces serialized in the XMLLiteral as expected output.  The input for the test cases does not have XML namespace attributes.  Instead, they use a `prefix` attribute to declare the prefixes used in the RDFa annotations.  Meanwhile, when the literal is serialized, they are not in the in-scope namespaces.  The RDFa specification says nothing about doing any kind of merging of prefixes and in-scope namespaces.  I believe these test cases are incorrect.  The correct serialization will not contain the `rdf:` and `foaf:` namespace declarations as they are not present in the source document.\n\nI have submitted these issue to the working group for consideration.\n\n## Test Suite\n\nTo run the tests yourself, you will need Java and Ant installed and then do the following:\n\n1. Build Green Turtle by running [ant](http://ant.apache.org) in the root directory.\n2. Build the SPARQL service:\n\n    \u003cpre\u003ecd tests/sparql-service/\n    ant\n    cd ../..\n    \u003c/pre\u003e\n3. Cache the test cases:\n\n\n    \u003cpre\u003ecd tests/harness\n    ./make-cache.sh\n    ./download-xml.sh\n    ./download-xhtml1.sh\n    ./download-xhtml5.sh\n    ./download-html4.sh\n    ./download-html5.sh\n    \u003c/pre\u003e\n\n\n4. Run the server:\n\n    \u003cpre\u003e../server/server.sh web.xml\u003c/pre\u003e\n    \n5. Visit [http://localhost:8888/](http://localhost:8888/) in your browser.\n6. Select the markup language from the drop-down list box and hit the 'Test' button.  The system will run the test cases rather silently unless you look at the console.  Eventually, it will output a table of the status of all the test cases.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexmilowski%2Fgreen-turtle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexmilowski%2Fgreen-turtle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexmilowski%2Fgreen-turtle/lists"}