Skip to content

ash-vertex/trr-foundational-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TRR Foundational Service

Project structure and setup instructions.

RDF Functionality PoC

This section demonstrates how to test the core RDF functionality in this project, including generating RDF data and querying it via the API.

1. Generate RDF Data

Use the ETL script to convert your data to RDF (Turtle format):

python etl/to_rdf.py

This will create or update RDF files in the rdf/ directory.

2. Start the API Server

Run the FastAPI server:

uvicorn app.main:app --reload

The API will be available at: http://localhost:8001

3. Test RDF Query Endpoint

You can test the RDF query endpoint (example):

curl -X POST "http://localhost:8000/api/v1/impact/query" \
	-H "Content-Type: application/json" \
	-d '{"query": "SELECT ?s ?p ?o WHERE { ?s ?p ?o } LIMIT 10"}'

Replace the query as needed for your use case.


For more details, see the code in app/clients/graphdb_client.py, app/sparql/impact_queries.py, and app/utils/sparql_utils.py.

About

it is poc just tried to understand on what we got kt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages