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

PFOCR result-augmentation: turn off for team and smartapi endpoints #895

Open
colleenXu opened this issue Oct 28, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@colleenXu
Copy link
Collaborator

When we updated PFOCR result-augmentation #876 #847, we accidentally turned on this feature for team and smartapi endpoints.

Those endpoints are only used when BTE is being used as a KP (Service Provider's TRAPI wrapper). So the users don't need PFOCR result-augmentation and it's just wasted extra work/time for BTE.

Example: send this query to BTE's Service Provider endpoint (v1/team/Service Provider/query) or Text-Mining-Targeted thru BTE (v1/smartapi/978fe380a147a8641caf72320862697b/query).
The response will have "pfocr" result-augmentation.

Query: decreases MYC

{
    "message": {
        "query_graph": {
            "nodes": {
                "creativeQuerySubject": {
                    "categories":["biolink:ChemicalEntity"]
                },
                "creativeQueryObject": {
                    "ids":["NCBIGene:4609"],
                    "categories":["biolink:Gene", "biolink:Protein"]
               }
            },
            "edges": {
                "eA": {
                    "subject": "creativeQuerySubject",
                    "object": "creativeQueryObject",
                    "predicates": ["biolink:affects"],
                    "qualifier_constraints": [
                        {
                            "qualifier_set": [
                                {
                                    "qualifier_type_id": "biolink:object_direction_qualifier",
                                    "qualifier_value": "decreased"
                                },
                                {
                                    "qualifier_type_id": "biolink:object_aspect_qualifier",
                                    "qualifier_value": "activity_or_abundance"
                                }
                            ]
                        }
                    ]
                }
            }
        }
    }
}

@colleenXu colleenXu added the bug Something isn't working label Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant