Notice: Scheduled maintenance is set for Tuesday, Sept 2nd at 1am EST. During this time, we will experience up to 20 minutes of downtime. Thank you for your patience.


Say I want to use schema.org's vocabulary for my N-triples data.

But there's some confusion on how to use that vocabulary. Actually this confusion is across many vocabularies I encountered.

Should it be:

<http://example.com/luca> <http://schema.org/Person/name> "Luca"

or maybe

<http://example.com/luca> <http://schema.org/Person#name> "Luca"

or maybe something else?

asked 12 Jan '13, 10:00

Luca%20Matteis's gravatar image

Luca Matteis
1.6k39
accept rate: 13%

edited 12 Jan '13, 10:00


The RDF version of Schema.org at schema.rdfs.org uses slash URIs and flat hierarchy, where all local names are directly under the namespace URI (see Turtle dump) . Therefore, for your example you should use something like this:

<http://example.com/luca> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Person> .
<http://example.com/luca> <http://schema.org/name> "Luca" .
link

answered 12 Jan '13, 10:14

jindrichm's gravatar image

jindrichm
1.9k210
accept rate: 35%

I don't see where "http://schema.org/name" is located in in the Turtle dump. How did you come to the conclusion that it shouldn't be <http://schema.org/Person#name> instead, which would make more sense since the link is usable, while http://schema.org/name simply shows an error page?

(12 Jan '13, 10:34) Luca Matteis Luca%20Matteis's gravatar image

If you look into the dump, there's schema:name CURIE, which, given the prefix schema used for the <http://schema.org/> namespace URI gives <http://schema.org/name>. I don't necessarily claim that it's the right option how to convert Schema.org into RDF, but it's the approach chosen by schema.rdfs.org. You can learn about their modelling choices at: http://schema.rdfs.org/faq.html#uris

(12 Jan '13, 13:05) jindrichm jindrichm's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×99
×11

Asked: 12 Jan '13, 10:00

Seen: 3,796 times

Last updated: 12 Jan '13, 13:07