[consult] How to build ontology in case of postgresql where table inherit exist
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 15/100
Rechercherichtung
Es ist keine Repository-Datei, kein Test und kein Einstiegspunkt angegeben; beginne damit zu klären, ob es sich um eine Anfrage nach SDK-Dokumentation oder um eine Anleitung zur Modellierung von PostgreSQL-Vererbung in Foundry handelt. Definiere das erwartete Ontologieverhalten für Sample, DrySample, AntiSample und ProteinSample, bevor der Umfang eines Beitrags festgelegt werden kann.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Here in our case, we need to build ontology based on tables in postgresql databse.
-
There are multi table in database, and they have inherit relation(as postgresql support this), i use
sqlalchemyto describe these part of table as follows, here include base table likeSample, and inherited table likeDrySample; and there are futher inherited table likeAntiSampleandProteinSamplewhich inherited fromDrySample. -
In these case, how should i build ontology in palantir? I thought palantir not support object type inherit, am i right ? hoping for your kindly help and reply @jsmith @jameszhang244 @afloren-palantir @invliD @ericanderson @jmcampanini @akerl @tdeitch
class Sample(Base):
__tablename__ ='samples'
id: Mapped[int] = mapped_column(primary_key=True)
source: Mapped[int] = mapped_column(ForeignKey('experiments.id'))
type: Mapped[str] = mapped_column(String(255))
class DrySample(Sample):
__tablename__ = 'dry_samples'
id: Mapped[int] = mapped_column(ForeignKey('samples.id'), primary_key=True)
sample_id: Mapped[str] = mapped_column(String(255))
freeze_count: Mapped[int] = mapped_column(Integer, default=0)
class AntiSample(DrySample):
__tablename__ = 'anti_samples'
id: Mapped[int] = mapped_column(ForeignKey('dry_sample.id'), primary_key=True)
volume: Mapped[str] = mapped_column(Float)
class ProteinSample(DrySample):
__tablename__ = 'anti_samples'
id: Mapped[int] = mapped_column(ForeignKey('dry_sample.id'), primary_key=True)
protein_id: Mapped[int] = mapped_column(ForeignKey('proteins.id'))
description: Mapped[str] = mapped_column(Text)
- Vorherrschende Sprache
- Python
- Sterne
- 208
- Forks
- 49
- Ø Merge
- 15 Std. 8 Min.
- Gemergte PRs (30 T.)
- 2
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Kein Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus palantir/foundry-platform-python
-
Feature Request: API endpoints to create Object Types, Action Types, and Link Types programmaticallyOffen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
palantir/foundry-platform-python#318 · 1 Kommentar ·
-
AIP Agents API Seems BrokenEvtl. wieder frei Ein Pull Request dazu wurde ohne Merge geschlossen. Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
palantir/foundry-platform-python#200 · 1 Reaktion ·
-
Create objectTypeOffen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
palantir/foundry-platform-python#169 · 7 Kommentare ·
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
palantir/foundry-platform-python#83 · 3 Kommentare ·
Alle Issues in palantir/foundry-platform-python
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
huggingface/sentence-transformers#4186 ·
Maintainer antworten meist innerhalb von 5 Tagen
-
documentation
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 92/100
QuantEcon/QuantEcon.py#988 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
fabriziosalmi/certmate#1247 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
Maintainer antworten meist innerhalb von 1 Tag
-
documentation good first issue
Schwierigkeit 2/5 Ein halber Tag Anfängerfreundlichkeit 72/100
sujithputta02/Esapay#13 ·