{"id":15389315,"url":"https://github.com/tpluscode/is-graph-pointer","last_synced_at":"2025-10-28T20:11:55.601Z","repository":{"id":39709499,"uuid":"454166696","full_name":"tpluscode/is-graph-pointer","owner":"tpluscode","description":"Check what a graph pointer is pointing at","archived":false,"fork":false,"pushed_at":"2023-09-27T22:06:33.000Z","size":648,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T02:19:32.901Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/tpluscode.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-31T20:54:21.000Z","updated_at":"2022-04-15T07:34:01.000Z","dependencies_parsed_at":"2024-06-21T04:19:47.705Z","dependency_job_id":"97a122e6-f630-4334-a4f6-cbdf094caafe","html_url":"https://github.com/tpluscode/is-graph-pointer","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpluscode%2Fis-graph-pointer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpluscode%2Fis-graph-pointer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpluscode%2Fis-graph-pointer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpluscode%2Fis-graph-pointer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tpluscode","download_url":"https://codeload.github.com/tpluscode/is-graph-pointer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247325697,"owners_count":20920715,"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-10-01T15:00:00.403Z","updated_at":"2025-10-28T20:11:50.554Z","avatar_url":"https://github.com/tpluscode.png","language":"TypeScript","readme":"# is-graph-pointer\n\nCheck what a graph pointer is pointing at\n\nIn an `if` condition:\n\n```typescript\nimport type { GraphPointer } from 'clownface'\nimport type { NamedNode } from '@rdfjs/types'\nimport { isNamedNode } from 'is-graph-pointer'\n\nlet pointer: GraphPointer\n\nif (isNamedNode(pointer)) {\n  const term: NamedNode = pointer.term\n}\n```\n\nTo filter arrays:\n\n```typescript\nimport type { MultiPointer } from 'clownface'\nimport type { Literal } from '@rdfjs/types'\nimport { isLiteral } from 'is-graph-pointer'\n\nlet pointer: MultiPointer\n\nconst literals: MultiPointer\u003cLiteral\u003e = pointer.filter(isLiteral)\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpluscode%2Fis-graph-pointer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftpluscode%2Fis-graph-pointer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpluscode%2Fis-graph-pointer/lists"}