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

Publish SWEET as Linked Data #18

Closed
dr-shorthair opened this issue Jul 24, 2017 · 9 comments
Closed

Publish SWEET as Linked Data #18

dr-shorthair opened this issue Jul 24, 2017 · 9 comments
Milestone

Comments

@dr-shorthair
Copy link
Collaborator

SWEET is currently published only in OWL/XML format.
Most non-Protege users prefer Turtle or JSON-LD.

Ideally SWEET should be provided in various serializations, through HTTP content negotiation.

@graybeal
Copy link
Collaborator

graybeal commented Jul 24, 2017 via email

@dr-shorthair
Copy link
Collaborator Author

Maybe at these secondary distribution points, but not at the actual Ontology URI, therefore not following Linked Data principles.

Also, because SWEET is so big, it is normal to download the whole thing to cache locally.
So really need a distro that provides the alternative serializations zipped up.

.owl files are not supported by TopBraid composer. Since this is my usual RDF IDE, I have to jump a lot of hoops to get SWEET loaded, usually too many.

@lewismc
Copy link
Member

lewismc commented Jul 25, 2017

ack @dr-shorthair I think that SWEET 2.4 could easily address this issue. There is some basic discussion to be had regarding how and when the different serializations are to be generated e.g. by the release manager prior to a release or by a developer upon ever new commit to the codebase.
What are your thoughts?
As mentioned, the COR as an example provides content negotiation for following formats
screen shot 2017-07-24 at 5 20 44 pm

@carueda
Copy link
Member

carueda commented Jul 25, 2017

Sorry the COR is currently down. As you may have seen in the mailing list, I just emailed our ECITE contact to look into the issue asap.

@carueda
Copy link
Member

carueda commented Jul 25, 2017

Thanks @lewismc for the COR reference.

Since COR is currently down, here's an example using https://xdomes.org/ont/xdomes/sensorType. If you just open this URL in your browser, then content negotiation will make the underlying ORR server resolve the URL to the usual HTML presentation because browsers include text/html in the Accept header of the request.

Other supported formats include:

Accept header Doc link
application/rdf+xml https://www.w3.org/TR/REC-rdf-syntax/
application/json+ld http://www.ietf.org/rfc/rfc6839.txt
text/n3 http://www.w3.org/TeamSubmission/n3/
text/turtle http://www.w3.org/TeamSubmission/turtle/
text/plain http://www.w3.org/TR/2004/REC-rdf-testcases-20040210/
application/n-quads http://www.w3.org/TR/2013/NOTE-n-quads-20130409/
application/trig http://www.w3.org/TR/2013/WD-trig-20130409/
application/rdf+json https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-json/index.html

For example, using the HTTPie command line tool:

$ http get https://xdomes.org/ont/xdomes/sensorType Accept:application/json+ld
{
    "@context": {
        "@vocab": "https://xdomes.org/ont/xdomes/sensorType/",
        "LongName": {
            "@id": "https://xdomes.org/ont/xdomes/sensorType/LongName"
        },
        "Reference": {
            "@id": "https://xdomes.org/ont/xdomes/sensorType/Reference",
            "@type": "@id"
        },
        "ShortName": {
            "@id": "https://xdomes.org/ont/xdomes/sensorType/ShortName"
        },
       ...
    },
    "@graph": [
        {
            "@id": "./",
            "@type": "owl:Ontology",
            "description": "This is a collection of sensor types in the enviro-sensing community.",
            "hasContributor": [
                "Mike Botts",
                "Carlos Rueda"
            ],
            "hasCreator": "Janet Fredericks",
            "hasResourceType": "http://mmisw.org/ont/mmi/resourcetype/sensor",
            "keywords": "sensor",
            "name": "SensorType",
            "origMaintainerCode": "xdomes",
            "reference": "http://www.opengeospatial.org/standards/sensorml"
        },
       ...
        {
            "@id": "windVane",
            "@type": "SensorType",
            "LongName": "windVane",
            "ShortName": "windVane",
            "definition": "A wind vane is an instrument that measures wind velocity using a propellor and direction using the mechanical mechanism (tail) to associate the direction of the sensor to determine the wind direction,"
        }
    ]
}

@dr-shorthair dr-shorthair changed the title Provide SWEET in alternative serializations, with conneg Publish SWEET as Linked Data Jul 26, 2017
@dr-shorthair
Copy link
Collaborator Author

Ensure that every SWEET URI - for a class, property, individual, and also ontology graph or file - dereferences (resolves) to a structured resource

meet reasonable expectations of http content negotiation - html, owl/xml, rdf/xml, turtle, n-triples, JSON-LD

Redescribe, rename and re-open this issue to retain connection to discussion. Close #24.

@carueda
Copy link
Member

carueda commented Oct 4, 2017

@dr-shorthair @lewismc @graybeal
Per the current status of things, seems like this entry could be closed as resolved?

In short, here's the status as I can see it:

@lewismc
Copy link
Member

lewismc commented Oct 4, 2017

+1 @carueda things are really moving on

@lewismc lewismc closed this as completed Oct 4, 2017
@lewismc lewismc added this to the 3 milestone Oct 4, 2017
@dr-shorthair
Copy link
Collaborator Author

#51 deals with the implementation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants