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

sweetontology.net ontology/term resolution #51

Closed
carueda opened this issue Sep 21, 2017 · 5 comments
Closed

sweetontology.net ontology/term resolution #51

carueda opened this issue Sep 21, 2017 · 5 comments
Assignees
Milestone

Comments

@carueda
Copy link
Member

carueda commented Sep 21, 2017

Entering this ticket to capture and track testing, observations, suggestions and any pending aspects involving the recently enabled COR powered dispatch of sweetontology.net,
see https://github.com/ESIPFed/sweet/wiki/sweetontology.net.

In summary, input is welcome regarding the desired HTML dispatch (if any) for the ontologies and terms, and, in general, about any issues or enhancements.

Ah, one other piece is the desired dispatch of the base name http://sweetontology.net/ :

  • redirect? if so, to what; or
  • provide html file to replace current placeholder contents at /var/www/html/sweetontology.net/index.html
  • other?
@dr-shorthair
Copy link
Collaborator

Also might consider supporting the common community expectation that HTTP conneg (Accept header) can overridden with a well-known file suffix.
e.g. requests like http://sweetontology.net/stateTimeGeologic/Ypresian.ttl is expected to return the same as http://sweetontology.net/stateTimeGeologic/Ypresian Accept: text/turtle

Strictly speaking the HTTP header should override everything, but our experience is that those people who know enough to add a suffix get frustrated if they don't get what they expected.

@carueda
Copy link
Member Author

carueda commented Oct 11, 2017

Agree.

Please see mmisw/orr-ont#55

@carueda
Copy link
Member Author

carueda commented Oct 12, 2017

@dr-shorthair @graybeal @lewismc FYI

COR just upgraded to v3.6.7 per implementation of mmisw/orr-ont#55 regarding resolution of desired format via "file-type extension" in the ontology or term IRI.

Some term request examples for http://sweetontology.net/stateTimeGeologic/Ypresian on the command line using HTTPie (remove -pb to also see the response header):

$ http -pb get http://sweetontology.net/stateTimeGeologic/Ypresian.ttl
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix err: <http://www.w3.org/2005/xqt-errors#> .
@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix fti: <http://franz.com/ns/allegrograph/2.2/textindex/> .
@prefix keyword: <http://franz.com/ns/keyword#> .
@prefix nd: <http://franz.com/ns/allegrograph/5.0/geo/nd#> .
@prefix ndfn: <http://franz.com/ns/allegrograph/5.0/geo/nd/fn#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .
<http://sweetontology.net/stateTimeGeologic/Ypresian> rdf:type <http://sweetontology.net/stateTime/Age> ;
  <http://sweetontology.net/relaTime/temporalPartOf> <http://sweetontology.net/stateTimeGeologic/Eocene> ;
  <http://sweetontology.net/relaTime/hasStartTime> <http://sweetontology.net/stateTimeGeologic/55.8MYA> ;
  <http://sweetontology.net/relaTime/hasEndTime> <http://sweetontology.net/stateTimeGeologic/48.6MYA> .
$ http -pb get http://sweetontology.net/stateTimeGeologic/Ypresian.json
{
    "names": [
        "property",
        "value"
    ],
    "values": [
        [
            "<http://sweetontology.net/relaTime/hasEndTime>",
            "<http://sweetontology.net/stateTimeGeologic/48.6MYA>"
        ],
        [
            "<http://sweetontology.net/relaTime/hasStartTime>",
            "<http://sweetontology.net/stateTimeGeologic/55.8MYA>"
        ],
        [
            "<http://sweetontology.net/relaTime/temporalPartOf>",
            "<http://sweetontology.net/stateTimeGeologic/Eocene>"
        ],
        [
            "<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>",
            "<http://sweetontology.net/stateTime/Age>"
        ]
    ]
}
$ http -pb get http://sweetontology.net/stateTimeGeologic/Ypresian.table
----------------------------
| property       | value   |
============================
| hasEndTime     | 48.6MYA |
| hasStartTime   | 55.8MYA |
| temporalPartOf | Eocene  |
| type           | Age     |
----------------------------

@lewismc
Copy link
Member

lewismc commented Oct 12, 2017

Very nice.

@carueda
Copy link
Member Author

carueda commented Nov 24, 2017

I'm closing this entry as the central feature (semantic resolution) has been implemented and verified.

For the html part, I've just entered #70

@carueda carueda closed this as completed Nov 24, 2017
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

3 participants