Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema Testing Problems #69

Open
OJ423 opened this issue Feb 8, 2023 · 0 comments
Open

Schema Testing Problems #69

OJ423 opened this issue Feb 8, 2023 · 0 comments

Comments

@OJ423
Copy link
Contributor

OJ423 commented Feb 8, 2023

I have encountered some problems experiementing with schema. The schema is copied at the bottom of this issue.

There are some properties that are not supported.

  1. Temporal type as Year/Month.

When I try to add a document, I get the following display -

image

  1. Email

image

Unable to search a link to a document

I have employees who are members of a team. The UI prompts me to choose a link to an existing team, but it won't let me search:

image

The schema is:

    {
        "@base": "terminusdb:///data/",
        "@schema": "terminusdb:///schema#",
        "@type": "@context"
    },
    {
        "@id": "organization",
        "@key": {
            "@type": "Random"
        },
        "@type": "Class",
        "Organization_Name": {
            "@class": "xsd:string",
            "@type": "Optional"
        }
    },
    {
        "@id": "project",
        "@inherits": "organization",
        "@key": {
            "@type": "Random"
        },
        "@type": "Class",
        "Project_ID": "xsd:string",
        "Project_Name": "xsd:string",
        "Project_Status": "project-status",
        "Start_Date": {
            "@class": "xsd:dateTime",
            "@type": "Optional"
        }
    },
    {
        "@id": "task",
        "@inherits": "project",
        "@key": {
            "@type": "Random"
        },
        "@type": "Class",
        "Assigned_To": {
            "@class": "employee",
            "@type": "Optional"
        },
        "Belongs_To_Task": "project",
        "Task_Name": "xsd:string",
        "Task_Status": "task-status"
    },
    {
        "@id": "team",
        "@inherits": "organization",
        "@key": {
            "@type": "Random"
        },
        "@type": "Class",
        "Team_ID": "xsd:string",
        "Team_Name": "xsd:string"
    },
    {
        "@id": "employee",
        "@inherits": "team",
        "@key": {
            "@type": "Random"
        },
        "@type": "Class",
        "Email_Address": "xdd:email",
        "First_Name": "xsd:string",
        "Last_Name": "xsd:string",
        "Member_Of": "team"
    },
    {
        "@id": "project-status",
        "@type": "Enum",
        "@value": [
            "in-progress",
            "on-hold",
            "completed"
        ]
    },
    {
        "@id": "task-status",
        "@type": "Enum",
        "@value": [
            "in-progress",
            "on-hold",
            "completed"
        ]
    }
]```
@OJ423 OJ423 changed the title Unsupported temporal schema property Unsupported schema properties Feb 8, 2023
@OJ423 OJ423 changed the title Unsupported schema properties Schema Testing Problems Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant