GithubHelp home page GithubHelp logo

Comments (8)

cmungall avatar cmungall commented on June 6, 2024

The problem is with http://www.ontologyrepository.com/CommonCoreOntologies/Mid/ExtendedRelationOntology

The version in the repo is OK

However, when the URL is fetched over the web it is returned as an HTML document:

<html><div class="container"><pre><meta http-equiv="content-type" content="text/html; charset=UTF-8">@prefix : &lthttp://www.ontologyrepository.com/CommonCoreOntologies/Mid/ExtendedRelationOntology/&gt .
@prefix cco: &lthttp://www.ontologyrepository.com/CommonCoreOntologies/&gt .
@prefix obo: &lthttp://purl.obolibrary.org/obo/&gt .
@prefix owl: &lthttp://www.w3.org/2002/07/owl#&gt .
@prefix rdf: &lthttp://www.w3.org/1999/02/22-rdf-syntax-ns#&gt .
@prefix xml: &lthttp://www.w3.org/XML/1998/namespace&gt .
@prefix xsd: &lthttp://www.w3.org/2001/XMLSchema#&gt .
@prefix rdfs: &lthttp://www.w3.org/2000/01/rdf-schema#&gt .
@base &lthttp://www.ontologyrepository.com/CommonCoreOntologies/Mid/ExtendedRelationOntology&gt .
...

from commoncoreontologies.

timrdf avatar timrdf commented on June 6, 2024

The URL does not content negotiate for either Turtle or RDF/XML

bash-3.2$ curl -s -H "Accept: text/turtle" -L http://www.ontologyrepository.com/CommonCoreOntologies/Mid/ExtendedRelationOntology | head -1
<html><div class="container"><pre><meta http-equiv="content-type" content="text/html; charset=UTF-8">@prefix : &lthttp://www.ontologyrepository.com/CommonCoreOntologies/Mid/ExtendedRelationOntology/&gt .
bash-3.2$ curl -s -H "Accept: application/rdf+xml" -L http://www.ontologyrepository.com/CommonCoreOntologies/Mid/ExtendedRelationOntology | head -1
<html><div class="container"><pre><meta http-equiv="content-type" content="text/html; charset=UTF-8">@prefix : &lthttp://www.ontologyrepository.com/CommonCoreOntologies/Mid/ExtendedRelationOntology/&gt .

from commoncoreontologies.

mark-jensen avatar mark-jensen commented on June 6, 2024

Thanks for pointing this out! We just set up our servers to resolve IRIs and still need to work out the formatting for ontologies vs individual terms.

from commoncoreontologies.

mark-jensen avatar mark-jensen commented on June 6, 2024

@cmungall @timrdf What is the standard return that a tool like Robot or Protege needs to consume an ontology file? Do they always specify a format in an Accept header? The OBO principle states:

However, the official owl PURL for the ontology must resolve to a syntactically valid OWL file in an RDF in RDF-XML syntax.

Does that mean for integration with OBO ontologies and their dev pipelines, our URLs should return RDF/XML as a defualt?

from commoncoreontologies.

cmungall avatar cmungall commented on June 6, 2024

from commoncoreontologies.

timrdf avatar timrdf commented on June 6, 2024

If a client makes a request with a reasonable Accept header, then it's proper to oblige. If an Accept header is not provided by a naive client, the server can choose to default to the oldest legacy serialization (application/rdf+xml) to maximize compatibility.

This distinction is more important when requests of the resource are made by either humans (text/html) or machines (text/turtle).

from commoncoreontologies.

cmungall avatar cmungall commented on June 6, 2024

from commoncoreontologies.

mark-jensen avatar mark-jensen commented on June 6, 2024

Both full ontology and individual term IRIs are returning requests. They can be loaded via IRI into tools like Protege or Robot.

from commoncoreontologies.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.