-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a3bc139
commit c83613f
Showing
7 changed files
with
150 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ authors = ["Kevin Stadler <[email protected]>"] | |
|
||
[tool.poetry.dependencies] | ||
python = "^3.12" | ||
rdfproxy = {git = "https://github.com/acdh-oeaw/rdfproxy.git", branch = "lupl/model-bool-feature"} | ||
rdfproxy = {git = "https://github.com/acdh-oeaw/rdfproxy.git", branch = "lupl/ungrouped-ordering"} | ||
fastapi = {extras = ["standard"], version = "^0.115.4"} | ||
gitpython = "^3.1.43" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
from typing import Annotated | ||
|
||
from pydantic import AnyUrl, BaseModel | ||
from rdfproxy import SPARQLBinding | ||
from pydantic import AnyUrl, BaseModel, Field # noqa: F401 | ||
from rdfproxy import ConfigDict, SPARQLBinding | ||
|
||
|
||
class Location(BaseModel): | ||
class Config: | ||
title = "Location" | ||
model_bool = "id" | ||
|
||
id: Annotated[AnyUrl | None, SPARQLBinding("location")] = None | ||
model_config = ConfigDict( | ||
title="Location", | ||
model_bool="id", | ||
) | ||
id: Annotated[AnyUrl | None, SPARQLBinding("location")] = Field( | ||
default=None, exclude=True | ||
) | ||
location_descriptive_name: Annotated[ | ||
str | None, SPARQLBinding("location__location_descriptive_name") | ||
] = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,69 @@ | ||
from typing import Annotated | ||
|
||
from pydantic import AnyUrl, BaseModel | ||
from rdfproxy import SPARQLBinding | ||
from pydantic import AnyUrl, BaseModel, Field # noqa: F401 | ||
from rdfproxy import ConfigDict, SPARQLBinding | ||
|
||
|
||
class Person_PersonAppellationAssertion(BaseModel): | ||
class Config: | ||
title = "Name(s) in the sources" | ||
model_bool = "id" | ||
|
||
model_config = ConfigDict( | ||
title="Name(s) in the sources", | ||
model_bool="id", | ||
) | ||
id: Annotated[ | ||
AnyUrl | None, SPARQLBinding("person__person_appellation_assertion") | ||
] = None | ||
] = Field(default=None, exclude=True) | ||
person_appellation_is: Annotated[ | ||
str | None, | ||
SPARQLBinding("person__person_appellation_assertion__person_appellation_is"), | ||
] = None | ||
|
||
|
||
class Person(BaseModel): | ||
class Config: | ||
title = "Person" | ||
model_bool = "id" | ||
group_by = "person" | ||
|
||
id: Annotated[AnyUrl | None, SPARQLBinding("person")] = None | ||
model_config = ConfigDict( | ||
title="Person", | ||
model_bool="id", | ||
group_by="id", | ||
) | ||
id: Annotated[AnyUrl | None, SPARQLBinding("person")] = Field( | ||
default=None, exclude=True | ||
) | ||
person_id_assignment: Annotated[ | ||
list[AnyUrl], SPARQLBinding("person__person_id_assignment") | ||
] | ||
person_appellation_assertion: Annotated[ | ||
list[Person_PersonAppellationAssertion], | ||
SPARQLBinding("person__person_appellation_assertion"), | ||
] | ||
person_gender_assertion: Annotated[ | ||
list[AnyUrl], SPARQLBinding("person__person_gender_assertion") | ||
] | ||
person_ethnicity_assertion: Annotated[ | ||
list[AnyUrl], SPARQLBinding("person__person_ethnicity_assertion") | ||
] | ||
person_descriptive_name: Annotated[ | ||
list[str], SPARQLBinding("person__person_descriptive_name") | ||
] | ||
person_possession_assertion: Annotated[ | ||
list[AnyUrl], SPARQLBinding("person__person_possession_assertion") | ||
] | ||
person_status_assertion: Annotated[ | ||
list[AnyUrl], SPARQLBinding("person__person_status_assertion") | ||
] | ||
person_religion_assertion: Annotated[ | ||
list[AnyUrl], SPARQLBinding("person__person_religion_assertion") | ||
] | ||
person_occupation_assertion: Annotated[ | ||
list[AnyUrl], SPARQLBinding("person__person_occupation_assertion") | ||
] | ||
person_language_assertion: Annotated[ | ||
list[AnyUrl], SPARQLBinding("person__person_language_assertion") | ||
] | ||
person_kinship_assertion: Annotated[ | ||
list[AnyUrl], SPARQLBinding("person__person_kinship_assertion") | ||
] | ||
birth_circumstances_claim: Annotated[ | ||
AnyUrl | None, SPARQLBinding("person__birth_circumstances_claim") | ||
] = None | ||
person_death_assertion: Annotated[ | ||
AnyUrl | None, SPARQLBinding("person__person_death_assertion") | ||
] = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,21 @@ | ||
from typing import Annotated | ||
|
||
from pydantic import AnyUrl, BaseModel | ||
from rdfproxy import SPARQLBinding | ||
|
||
|
||
class WrittenWork_WorkCreationAssertion_WorkCreation(BaseModel): | ||
class Config: | ||
title = "text_creation" | ||
model_bool = "id" | ||
group_by = "written_work__work_creation_assertion__work_creation" | ||
|
||
id: Annotated[ | ||
AnyUrl | None, | ||
SPARQLBinding("written_work__work_creation_assertion__work_creation"), | ||
] = None | ||
work_creation_6464e7f7408f5: Annotated[ | ||
list[AnyUrl], | ||
SPARQLBinding( | ||
"written_work__work_creation_assertion__work_creation__work_creation_6464e7f7408f5" | ||
), | ||
] | ||
text_creation_timeframe_assertio: Annotated[ | ||
AnyUrl | None, | ||
SPARQLBinding( | ||
"written_work__work_creation_assertion__work_creation__text_creation_timeframe_assertio" | ||
), | ||
] = None | ||
|
||
|
||
class WrittenWork_WorkCreationAssertion(BaseModel): | ||
class Config: | ||
title = "text_creation_assertion" | ||
model_bool = "id" | ||
|
||
id: Annotated[ | ||
AnyUrl | None, SPARQLBinding("written_work__work_creation_assertion") | ||
] = None | ||
work_creation: Annotated[ | ||
WrittenWork_WorkCreationAssertion_WorkCreation | None, | ||
SPARQLBinding("written_work__work_creation_assertion__work_creation"), | ||
] = None | ||
work_creation_assertion_by: Annotated[ | ||
AnyUrl | None, | ||
SPARQLBinding( | ||
"written_work__work_creation_assertion__work_creation_assertion_by" | ||
), | ||
] = None | ||
work_creation_assertion_by_64676da87229e: Annotated[ | ||
AnyUrl | None, | ||
SPARQLBinding( | ||
"written_work__work_creation_assertion__work_creation_assertion_by_64676da87229e" | ||
), | ||
] = None | ||
from pydantic import AnyUrl, BaseModel, Field # noqa: F401 | ||
from rdfproxy import ConfigDict, SPARQLBinding | ||
|
||
|
||
class WrittenWork(BaseModel): | ||
class Config: | ||
title = "Text Expression" | ||
model_bool = "id" | ||
group_by = "written_work" | ||
|
||
id: Annotated[AnyUrl | None, SPARQLBinding("written_work")] = None | ||
model_config = ConfigDict( | ||
title="Text Expression", | ||
model_bool="id", | ||
group_by="id", | ||
) | ||
id: Annotated[AnyUrl | None, SPARQLBinding("written_work")] = Field( | ||
default=None, exclude=True | ||
) | ||
written_work_label: Annotated[ | ||
str | None, SPARQLBinding("written_work__written_work_label") | ||
] = None | ||
work_creation_assertion: Annotated[ | ||
list[WrittenWork_WorkCreationAssertion], | ||
SPARQLBinding("written_work__work_creation_assertion"), | ||
list[AnyUrl], SPARQLBinding("written_work__work_creation_assertion") | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters