{"id":13640079,"url":"https://github.com/br41nlet/SchemaGPT","last_synced_at":"2025-04-20T02:32:38.291Z","repository":{"id":65728974,"uuid":"596306044","full_name":"u-hubar/SchemaGPT","owner":"u-hubar","description":"Python library for RDF Schemas generation from prompts using GPT-3 magic 🪄🪄🪄","archived":false,"fork":false,"pushed_at":"2023-02-03T14:08:10.000Z","size":31,"stargazers_count":69,"open_issues_count":1,"forks_count":4,"subscribers_count":8,"default_branch":"main","last_synced_at":"2024-08-03T01:16:08.339Z","etag":null,"topics":["gpt-3","knowledge-graph","rdf","schema-org","semantic-web"],"latest_commit_sha":null,"homepage":"","language":"Python","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/u-hubar.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":"2023-02-01T22:30:42.000Z","updated_at":"2024-05-23T06:04:57.000Z","dependencies_parsed_at":"2023-02-18T07:45:48.171Z","dependency_job_id":null,"html_url":"https://github.com/u-hubar/SchemaGPT","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/u-hubar%2FSchemaGPT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/u-hubar%2FSchemaGPT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/u-hubar%2FSchemaGPT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/u-hubar%2FSchemaGPT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/u-hubar","download_url":"https://codeload.github.com/u-hubar/SchemaGPT/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223816382,"owners_count":17207850,"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":["gpt-3","knowledge-graph","rdf","schema-org","semantic-web"],"created_at":"2024-08-02T01:01:07.548Z","updated_at":"2025-04-20T02:32:38.285Z","avatar_url":"https://github.com/u-hubar.png","language":"Python","funding_links":[],"categories":["Prompts"],"sub_categories":[],"readme":"# SchemaGPT\n\n\u003e **Note:** The generated RDF Schemas are not 100% accurate and may require manual correction.\n\nSchemaGPT is a Python library that utilizes the power of OpenAI's GPT-3 and [schema.org](https://schema.org) vocabulary to generate RDF Schemas from natural language.\n\nThe library aims to simplify the process of creating RDF Schemas by automatically generating them from a user-defined description written in natural language.\n\nThe generated Schemas are in the form of RDF, a popular data model for semantic web technologies, making it easier for developers to work with linked data.\n\n## Who can benefit from using this library?\n\nAnyone who wants to simplify the process of creating RDF Schemas for linked data can benefit from using the SchemaGPT library. This includes software developers, data scientists, semantic web practitioners, and anyone else who needs to work with RDF data. The library is especially useful for those who are not familiar with the intricacies of RDF Schema creation, as it provides a way to generate Schemas from a natural language description, making the process much easier and faster.\n\n\n## Installation\n\nTo install SchemaGPT, simply run the following command using `pip`:\n\n```bash\npip install schemagpt\n```\nor using `Poetry`:\n```bash\npoetry add schemagpt\n```\n\n## Usage\n\nUsing SchemaGPT is straightforward. Here's a simple example:\n\n```python\nfrom schemagpt import SchemaGPT\n\ngenerator = SchemaGPT(\u003cYOUR_OPENAI_API_KEY\u003e)\nschema = generator.schema(\"Tesla Model X\")\nprint(schema)\n```\n\nThis will generate the following RDF Schema:\n```json\n{\n  \"@context\": \"https://schema.org\",\n  \"@type\": \"Car\",\n  \"name\": \"Tesla Model X\",\n  \"brand\": {\n    \"@type\": \"Brand\",\n    \"name\": \"Tesla\"\n  },\n  \"model\": \"Model X\"\n}\n```\n\n## Features\n| Feature | Status |\n| :------- | :------: |\n| Schemas generation/updates using natural language | :white_check_mark: |\n| Schemas validation/fixes (according to schema.org) with Pydantic | :construction: |\n\n## Supported formats for RDF Schemas\n\n| Format | Description | Status |\n| :------ | :----------- | :------: |\n| RDF/XML | The standard XML format for RDF | :x: |\n| Turtle | A terse, human-readable RDF syntax | :x: |\n| N-Triples | A line-based, plain-text format for RDF | :x: |\n| N-Quads | A line-based, plain-text format for RDF with context information | :x: |\n| JSON-LD | A JSON-based format for RDF | :white_check_mark: |\n\n## Contribution\nSchemaGPT is open-source. If you have an idea for a new feature, or you've found a bug, please feel free to open an issue or submit a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbr41nlet%2FSchemaGPT","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbr41nlet%2FSchemaGPT","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbr41nlet%2FSchemaGPT/lists"}