Re: Question regarding using <http://www.schema.org/ItemList> with items from other ontologies

It should be fine - "Thing" is our most general type that covers
everything, so the intent seems consistent

On Mar 23, 2017 17:22, "Tobias Schweizer" <t.schweizer@unibas.ch> wrote:

Hello

I am currently designing the API V2 for our repository (http://www.knora.org)
that is based on an RDF-triplestore.

I would like to use JSON-LD along with entity definitions from
http://www.schema.org in order to re-use existing ontologies (as stated
here: http://json-ld.org/spec/latest/json-ld-api-best-
practices/#introduction).
We would like to use http://www.schema.org/ItemList because then everyone
familiar with http://www.schema.org entities could process our search
results.

My question is if I can represent items in an ItemList that are not derived
from http://www.schema.org/Thing as shown in this example:

{
  "@context": {
    "@vocab": "http://schema.org/" <http://schema.org/>,
    "title_inc": "http://www.knora.org/ontology/incunabula/title"
<http://www.knora.org/ontology/incunabula/title>,
    "title_beol": "http://www.knora.org/ontology/beol/title"
<http://www.knora.org/ontology/beol/title>

  },
  "@type": "ItemList",
  "url": "http://www.knora.org/v2/search/fulltext/someString"
<http://www.knora.org/v2/search/fulltext/someString>,
  "numberOfItems": "2",
  "itemListElement": [{
      "@type": "http://www.knora.org/ontology/beol/letter"
<http://www.knora.org/ontology/beol/letter>,
      "title_beol": "Johann Bernoulli an ..."
    },
{
      "@type": "http://www.knora.org/ontology/incunabula/book"
<http://www.knora.org/ontology/incunabula/book>,
      "title_inc": "Das Narrenschiff"
    }
  ]
}

http://www.knora.org/ontology/beol/letter and http://www.knora.org/ontology/
incunabula/book are both subclasses of knora-base:Resource (
https://github.com/dhlab-basel/Knora/blob/develop/
knora-ontologies/knora-base.ttl#L2055) which is very generic.

However, this does not comply with the expected type of itemListElement.

You find more information about the background of my question here:
https://github.com/dhlab-basel/Knora/issues/466

I am very grateful for any kind of hint.

kind regards

Tobias Schweizer
​

-- 
Dr. Tobias Schweizer
Digital Humanites Lab
University of Basel

Received on Thursday, 23 March 2017 18:04:10 UTC