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

Errors when creating a protocol with one item #337

Open
ibevers opened this issue Aug 12, 2024 · 7 comments
Open

Errors when creating a protocol with one item #337

ibevers opened this issue Aug 12, 2024 · 7 comments

Comments

@ibevers
Copy link

ibevers commented Aug 12, 2024

protocol with one item (passes validation):

{
    "@context": [
        "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema"
    ],
    "@type": "reproschema:Protocol",
    "@id": "test_protocol_schema",
    "prefLabel": "Test protocol",
    "description": "A test protocol",
    "schemaVersion": "1.0.0",
    "version": "0.0.1",
    "ui": {
        "addProperties": [
            {
                "isAbout": "generic/activities/q_generic_demographics/activities/completed_by/completed_by_schema",
                "variableName": "completed_by_schema",
                "prefLabel": {
                    "en": "completed_by"
                }
            }
        ],
        "order": [
            "generic/activities/q_generic_demographics/activities/completed_by/completed_by_schema"
        ],
        "shuffle": false,
        "allow": [
            "reproschema:AllowExport",
            "reproschema:AutoAdvance"
        ]
    }
}

Error message:

Screenshot 2024-08-12 at 3 41 34 PM
@satra
Copy link
Contributor

satra commented Aug 12, 2024

i’m not seeing the error with the single activity. i’m testing on my local setup with the docker container and a local repo of the demo_protocol. hence perhaps some component of the files you are testing with is probably not valid. can you try something like: reproschema convert --format turtle DemoProtocol/DemoProtocol_schema_single to see if you can spot any issues with the files? (also id check is not available in the current validation - still an open issue).

feel free to post the turtles corresponding to either the activity or the protocol in this thread.

@ibevers
Copy link
Author

ibevers commented Aug 12, 2024

Hmm, weird, I copy pasted my protocol and tried it again and it worked as expected. The turtle looks fine:


(.venv) isaacbevers@MacBook-Pro-8 b2aiprotocol % reproschema convert --format turtle  /Users/isaacbevers/sensein/reproschema-wrapper/b2aiprotocol/test_protocol
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rs: <http://schema.repronim.org/> .
@prefix sdo: <http://schema.org/> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://localhost:8000//Users/isaacbevers/sensein/reproschema-wrapper/b2aiprotocol/test_protocol_schema> a rs:Protocol ;
    sdo:description "A test protocol"@en ;
    sdo:schemaVersion "1.0.0" ;
    sdo:version "0.0.1" ;
    rs:addProperties [ rs:isAbout <http://localhost:8000//Users/isaacbevers/sensein/reproschema-wrapper/b2aiprotocol/generic/activities/q_generic_demographics/activities/completed_by/completed_by_schema> ;
            rs:variableName "completed_by_schema"@en ;
            skos:prefLabel "completed_by"@en ] ;
    rs:allow rs:AllowExport,
        rs:AutoAdvance ;
    rs:order ( <http://localhost:8000//Users/isaacbevers/sensein/reproschema-wrapper/b2aiprotocol/generic/activities/q_generic_demographics/activities/completed_by/completed_by_schema> ) ;
    rs:shuffle false ;
    skos:prefLabel "Test protocol"@en .

@satra
Copy link
Contributor

satra commented Aug 12, 2024

i'll close this. reopen if it appears again.

@satra satra closed this as completed Aug 12, 2024
@ibevers
Copy link
Author

ibevers commented Aug 14, 2024

@satra I don't have permission to reopen, but this error is back.

@satra
Copy link
Contributor

satra commented Aug 14, 2024

i could not reproduce it so i will need a minimal example that i can clone and reproduce.

@satra satra reopened this Aug 14, 2024
@satra
Copy link
Contributor

satra commented Aug 14, 2024

also because of caching and other issues, make sure to clear out any cache and refresh.

@ibevers
Copy link
Author

ibevers commented Aug 15, 2024

I tried clearing my browser cache. I can work around this one, so I'm not going to put more effort into solving it for now

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

2 participants