Skip to content

Commit

Permalink
docs: adapt readme and exmaples to rdfproxy.ConfigDict
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-pl committed Dec 5, 2024
1 parent ef842b2 commit 89e70d3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ The result set can be mapped to a nested Pydantic model like so:
from typing import Annotated

from fastapi import FastAPI, Query
from pydantic import BaseModel, ConfigDict
from rdfproxy import Page, QueryParameters, SPARQLBinding, SPARQLModelAdapter
from pydantic import BaseModel
from rdfproxy import ConfigDict, Page, QueryParameters, SPARQLBinding, SPARQLModelAdapter

class Work(BaseModel):
model_config = ConfigDict(group_by="name")
Expand Down
10 changes: 8 additions & 2 deletions examples/full_static_fastapi_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
from typing import Annotated

from fastapi import FastAPI, Query
from pydantic import BaseModel, ConfigDict
from rdfproxy import Page, QueryParameters, SPARQLBinding, SPARQLModelAdapter
from pydantic import BaseModel
from rdfproxy import (
ConfigDict,
Page,
QueryParameters,
SPARQLBinding,
SPARQLModelAdapter,
)


query = """
Expand Down
10 changes: 8 additions & 2 deletions examples/wikidata_grouped_person_fastapi_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
from typing import Annotated

from fastapi import FastAPI, Query
from pydantic import BaseModel, ConfigDict
from rdfproxy import Page, QueryParameters, SPARQLBinding, SPARQLModelAdapter
from pydantic import BaseModel
from rdfproxy import (
ConfigDict,
Page,
QueryParameters,
SPARQLBinding,
SPARQLModelAdapter,
)


query = """
Expand Down

0 comments on commit 89e70d3

Please sign in to comment.