{"id":19197912,"url":"https://github.com/flarebyte/ntriples-filter","last_synced_at":"2026-06-22T05:32:02.665Z","repository":{"id":57675091,"uuid":"87740008","full_name":"flarebyte/ntriples-filter","owner":"flarebyte","description":"Filter for rdf ntriples in Elm","archived":false,"fork":false,"pushed_at":"2017-08-05T16:39:02.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T17:09:26.195Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flarebyte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-09T21:25:41.000Z","updated_at":"2018-01-09T16:57:22.000Z","dependencies_parsed_at":"2022-09-02T17:08:41.155Z","dependency_job_id":null,"html_url":"https://github.com/flarebyte/ntriples-filter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/flarebyte/ntriples-filter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flarebyte%2Fntriples-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flarebyte%2Fntriples-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flarebyte%2Fntriples-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flarebyte%2Fntriples-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flarebyte","download_url":"https://codeload.github.com/flarebyte/ntriples-filter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flarebyte%2Fntriples-filter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34636427,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-22T02:00:06.391Z","response_time":106,"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-11-09T12:19:24.119Z","updated_at":"2026-06-22T05:32:02.650Z","avatar_url":"https://github.com/flarebyte.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Filtering  of n-triples\n\n[![Build Status](https://travis-ci.org/flarebyte/ntriples-filter.svg?branch=master)](https://travis-ci.org/flarebyte/ntriples-filter)\n\n\u003e This library provides an easy way of filtering a list of simplified n-triples. A simplified n-triple with a subject, a predicate and an object. It is simplified because it does not discriminate between URI, blank node, language or datatype. More about [RDF n-triples](https://en.wikipedia.org/wiki/N-Triples)\n\n## Getting Started\n\n### Installing Elm packages\n\nThere is no dependency.\n\n```\nelm-app package install \u003cpackage-name\u003e\n```\n\n## Create a n-triple\n\nCreate a simplified n-triple with a subject, a predicate and an object.\n\n```\ncreateTriple \"http://example.org/show/218\" \"http://www.w3.org/2000/01/rdf-schema#label\" \"That Seventies Show\"\n```\n\nPlease note that intentionally this library has a very casual approach to the specs, and any string will be accepted.\n\n## Filter a list of n-triples\n\nFilter a list of n-triples based on a filter expression.\n\n```\n-- Select only the triples which have a given subject\nfilter (WithSubject (Equals \"http://example.org/show/218\")) listOfTriples\n\n-- Select only the triples which have a label and which starts with \"That\"\nfilter (And (WithPredicate (Equals \"http://www.w3.org/2000/01/rdf-schema#label\"))(WithObject (StartsWith \"That\")) ) listOfTriples\n```\n\n## Filter expression\n\n| Type          | Description                                                                                                             |\n|---------------|-------------------------------------------------------------------------------------------------------------------------|\n| WithSubject   | Specify a criteria for the subject field.                                                                               |\n| WithPredicate | Specify a criteria for the predicate field.                                                                             |\n| WithObject    | Specify a criteria for the object field.                                                                                |\n| Not           | Inverts the effect of a filter expression and returns a list of triples that does not match it.                         |\n| And           | Joins filter expressions clauses with a logical AND returns all the triples that match the conditions of both clauses.  |\n| Or            | Joins filter expressions clauses with a logical OR returns all the triples that match the conditions of either clauses. |\n\n## Field comparator\n\n| Type               | Description                                                                 |\n|--------------------|-----------------------------------------------------------------------------|\n| IsEmpty            | Determine if the field is empty.                                            |\n| Equals             | Determine if the field is equal to the given value.                         |\n| StartsWith         | Determine if the field starts with the given value.                         |\n| EndsWith           | Determine if the field ends with the given value.                           |\n| Contains           | Determine if the field contains the given value.                            |\n| Regx               | Determine if the field satisfies the given regular expression.              |\n| IsTrue             | Determine if the field is true (contains the string \"true\").                |\n| IsFalse            | Determine if the field is true (contains the string \"false\").               |\n| EqualsAny          | Determine if the field is equal any of the given values.                    |\n| GreaterThan        | Determine if the field is greater than the given float value.               |\n| GreaterThanOrEqual | Determine if the field is greater or equal to the given float value.        |\n| LessThan           | Determine if the field is less than the given float value.                  |\n| LessThanOrEqual    | Determine if the field is less or equal to the given float value.           |\n| Custom             | Determine if the field satisfies a custom function against the given value. |\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.\n\n## Versioning\n\nManaged automatically by [Elm version rules](https://github.com/elm-lang/elm-package#version-rules).\n\n## Authors\n\n* **Olivier Huin** - *Initial work* - [olih](https://github.com/olih)\n\nSee also the list of [contributors](https://github.com/flarebyte/ntriples-filter/graphs/contributors) who participated in this project.\n\n## License\n\nThis project is licensed under the BSD 3-Clause License - see the [LICENSE.md](LICENSE) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflarebyte%2Fntriples-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflarebyte%2Fntriples-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflarebyte%2Fntriples-filter/lists"}