Sparql 如何将aboxforontology与其对应的owl连接起来
我买了一本书的猫头鹰Sparql 如何将aboxforontology与其对应的owl连接起来,sparql,semantic-web,owl,ontology,protege,Sparql,Semantic Web,Owl,Ontology,Protege,我买了一本书的猫头鹰 #----------------------------------------------------------------------------- # Prefixes #----------------------------------------------------------------------------- @prefix dbpedia-owl: <http://dbpedia.org/ontology/> . @prefix d
#-----------------------------------------------------------------------------
# Prefixes
#-----------------------------------------------------------------------------
@prefix dbpedia-owl: <http://dbpedia.org/ontology/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix gr: <http://purl.org/goodrelations/v1#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix pto: <http://www.productontology.org/id/> .
@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 xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix opdm: <http://purl.org/opdm/utility#> .
@prefix oggl: <http://purl.org/opdm/category/google#> .
# Prefix of this vocabulary: obk
# - "o" as in the first letter of the project "OPDM"
# - "bk" as in the first two consonants of the main Product Type "Book"
# (criterion borrowed from UNIX commands).
@prefix obk: <http://purl.org/opdm/book#> .
#-----------------------------------------------------------------------------
# Ontology
#-----------------------------------------------------------------------------
obk:
a owl:Ontology ;
owl:imports <http://purl.org/goodrelations/v1> ,
opdm: ;
rdfs:label "Book Vocabulary"@en ;
rdfs:comment "Vocabulary for describing books."@en ;
dcterms:subject "book, audio book, ebook, reading"@en ;
dcterms:creator "Bene Rodriguez-Castro" ,
"Laszlo Torok" ,
"Martin Hepp" ,
<http://www.unibw.de/ebusiness/> ,
<http://opdm-project.org/> ;
.
#-----------------------------------------------------------------------------
# Classes
#-----------------------------------------------------------------------------
# Product Type Classes -------------------------------------------------------
obk:Book
a owl:Class ;
rdfs:subClassOf gr:ProductOrService ;
rdfs:isDefinedBy obk: ;
rdfs:label "Book"@en ;
foaf:depiction <http://upload.wikimedia.org/wikipedia/commons/thumb/0/0a/Urval_av_de_bocker_som_har_vunnit_Nordiska_radets_litteraturpris_under_de_50_ar_som_priset_funnits_%283%29.jpg/220px-Urval_av_de_bocker_som_har_vunnit_Nordiska_radets_litteraturpris_under_de_50_ar_som_priset_funnits_%283%29.jpg> ;
opdm:category oggl:Media_Books ;
rdfs:comment "Super class of all books"@en .
# Utility Classes ------------------------------------------------------------
obk:BookFormat
a owl:Class ;
rdfs:subClassOf gr:QualitativeValue ;
rdfs:isDefinedBy obk: ;
rdfs:label "BookFormat"@en ;
rdfs:comment "Format of the book"@en .
obk:ElectronicFormat
a owl:Class ;
rdfs:subClassOf obk:BookFormat ;
rdfs:isDefinedBy obk: ;
rdfs:label "ElectronicFormat"@en ;
rdfs:comment "Electronic (not-printed) format"@en .
obk:PaperFormat
a owl:Class ;
rdfs:subClassOf obk:BookFormat ;
rdfs:isDefinedBy obk: ;
rdfs:label "PaperFormat"@en ;
rdfs:comment "Paper format"@en .
obk:Person
a owl:Class ;
rdfs:subClassOf gr:QualitativeValue ,
foaf:Person ;
rdfs:isDefinedBy obk: ;
rdfs:label "Person"@en ;
rdfs:comment "Person associated to the book as an author, narrator (for an audio book) or any other function"@en .
# Look into canonical taxonomies of literary genres.
# There is always Wikipedia/DBpedia.
# From Wikipedia Book entry infobox: Epic, Lyric, Drama, Romance,
# Satire, Tragedy, Comedy, Tragicomedy
obk:BookGenre
a owl:Class ;
rdfs:subClassOf gr:QualitativeValue ;
rdfs:isDefinedBy obk: ;
rdfs:label "BookGenre"@en ;
rdfs:comment "Vocabulary of literary genres preferably derived from a established literary taxonomy of genres but at the same time open-ended."@en .
#-----------------------------------------------------------------------------
# Individuals
#-----------------------------------------------------------------------------
# (obk:BookFormat) -----------------------------------------------------------
obk:Hardcover
a obk:PaperFormat ;
rdfs:isDefinedBy obk: ;
rdfs:label "Hardcover"@en ;
rdfs:comment "The hardcover version of a book"@en .
obk:Paperback
a obk:PaperFormat ;
rdfs:isDefinedBy obk: ;
rdfs:label "Paperback"@en ;
rdfs:comment "The paperback format version of a book"@en .
obk:Audiobook
a obk:ElectronicFormat ;
rdfs:isDefinedBy obk: ;
rdfs:label "Audiobook"@en ;
rdfs:comment "The audio format version of a book"@en .
obk:Ebook
a obk:ElectronicFormat ;
rdfs:isDefinedBy obk: ;
rdfs:label "Ebook"@en ;
rdfs:comment "The electronic format version of a book"@en .
# (obk:BookGenre) ------------------------------------------------------------
obk:Epic
a obk:BookGenre ;
rdfs:isDefinedBy obk: ;
rdfs:label "Epic"@en ;
rdfs:comment "The Epic literary genre"@en .
obk:Lyric
a obk:BookGenre ;
rdfs:isDefinedBy obk: ;
rdfs:label "Lyric"@en ;
rdfs:comment "The Lyric literary genre"@en .
obk:Drama
a obk:BookGenre ;
rdfs:isDefinedBy obk: ;
rdfs:label "Drama"@en ;
rdfs:comment "The Drama literary genre"@en .
obk:Fiction
a obk:BookGenre ;
rdfs:isDefinedBy obk: ;
rdfs:label "Fiction"@en ;
rdfs:comment "The Fiction literary genre"@en .
# ... rest of genres
obk:GenreN
a obk:BookGenre ;
rdfs:isDefinedBy obk: ;
rdfs:label "Genre N"@en ;
rdfs:comment "Not to be used. Genre N represents the notion of the open-ended type of genres that can be defined"@en .
#-----------------------------------------------------------------------------
# Datatype Properties
#-----------------------------------------------------------------------------
# (gr:datatypeProductOrServiceProperty) --------------------------------------
obk:abstract
a owl:DatatypeProperty ;
rdfs:subPropertyOf gr:datatypeProductOrServiceProperty ;
rdfs:isDefinedBy obk: ;
rdfs:domain obk:Book ;
rdfs:range xsd:string ;
rdfs:label "Abstract"@en ;
opdm:minCardinality "0"^^xsd:string;
opdm:maxCardinality "1"^^xsd:string;
rdfs:comment "Abstract of the book"@en ;
opdm:isConfiguredBy [
a opdm:MetadataContainer ;
opdm:inProfile opdm:DefaultProfile ;
opdm:attributePosition "0"^^xsd:integer ;
opdm:exampleOfUsage "The value of this property is a textual description (xsd:string)."^^xsd:string ;
opdm:rankingDirection "DESC"^^xsd:string ;
opdm:priority "0"^^xsd:integer ;
] ;
.
obk:numberOfPages
a owl:DatatypeProperty ;
rdfs:subPropertyOf gr:datatypeProductOrServiceProperty ;
rdfs:isDefinedBy obk: ;
rdfs:domain obk:Book ;
rdfs:range xsd:integer ;
rdfs:label "Number of pages"@en ;
opdm:minCardinality "0"^^xsd:string;
opdm:maxCardinality "1"^^xsd:string;
rdfs:comment "The number of pages of the book. It applies only to books in paper and electronic-book format"@en ;
opdm:isConfiguredBy [
a opdm:MetadataContainer ;
opdm:inProfile opdm:DefaultProfile ;
opdm:attributePosition "0"^^xsd:integer ;
opdm:exampleOfUsage "The value of this property is a numeric value (xsd:integer)."^^xsd:string ;
opdm:rankingDirection "DESC"^^xsd:string ;
opdm:priority "0"^^xsd:integer ;
] ;
.
obk:publishedDate
a owl:DatatypeProperty ;
rdfs:subPropertyOf gr:datatypeProductOrServiceProperty ;
rdfs:isDefinedBy obk: ;
rdfs:domain obk:Book ;
rdfs:range xsd:date ;
rdfs:label "Published date"@en ;
opdm:minCardinality "0"^^xsd:string;
opdm:maxCardinality "*"^^xsd:string;
rdfs:comment "The date(s) that the book has been published"@en ;
opdm:isConfiguredBy [
a opdm:MetadataContainer ;
opdm:inProfile opdm:DefaultProfile ;
opdm:attributePosition "0"^^xsd:integer ;
opdm:exampleOfUsage "The value of this property is a valid date (xsd:date)."^^xsd:string ;
opdm:rankingDirection "DESC"^^xsd:string ;
opdm:priority "0"^^xsd:integer ;
] ;
.
obk:publishedIn
a owl:DatatypeProperty ;
rdfs:subPropertyOf gr:datatypeProductOrServiceProperty ;
rdfs:isDefinedBy obk: ;
rdfs:domain obk:Book ;
rdfs:range xsd:language ;
rdfs:label "Published in"@en ;
opdm:minCardinality "0"^^xsd:string;
opdm:maxCardinality "*"^^xsd:string;
rdfs:comment "The language in which the book is published."@en ;
opdm:isConfiguredBy [
a opdm:MetadataContainer ;
opdm:inProfile opdm:DefaultProfile ;
opdm:attributePosition "0"^^xsd:integer ;
opdm:exampleOfUsage "The value of this property is a valid xsd:language code (xsd:language). See description at <http://www.w3.org/TR/2012/PR-xmlschema11-2-20120119/datatypes.html#language>"^^xsd:string ;
opdm:rankingDirection "DESC"^^xsd:string ;
opdm:priority "0"^^xsd:integer ;
] ;
.
obk:title
a owl:DatatypeProperty ;
a owl:FunctionalProperty;
rdfs:subPropertyOf gr:datatypeProductOrServiceProperty ;
rdfs:isDefinedBy obk: ;
rdfs:domain obk:Book ;
rdfs:range xsd:string ;
rdfs:label "Title"@en ;
opdm:minCardinality "0"^^xsd:string;
opdm:maxCardinality "1"^^xsd:string;
rdfs:comment "Title of the book"@en ;
opdm:isConfiguredBy [
a opdm:MetadataContainer ;
opdm:inProfile opdm:DefaultProfile ;
opdm:attributePosition "0"^^xsd:integer ;
opdm:exampleOfUsage "The value of this property is a textual description (xsd:string)."^^xsd:string ;
opdm:rankingDirection "DESC"^^xsd:string ;
opdm:priority "0"^^xsd:integer ;
] ;
.
#-----------------------------------------------------------------------------
# Object Properties
#-----------------------------------------------------------------------------
# (gr:qualitativeProductOrServiceProperty) -----------------------------------
obk:author
a owl:ObjectProperty ;
rdfs:subPropertyOf gr:qualitativeProductOrServiceProperty ;
rdfs:isDefinedBy obk: ;
rdfs:domain obk:Book ;
rdfs:range obk:Person ;
rdfs:label "Author"@en ;
opdm:minCardinality "0"^^xsd:string;
opdm:maxCardinality "1"^^xsd:string;
rdfs:comment "The author of the book"@en ;
opdm:isConfiguredBy [
a opdm:MetadataContainer ;
opdm:inProfile opdm:DefaultProfile ;
opdm:attributePosition "0"^^xsd:integer ;
opdm:exampleOfUsage "The value of this property is an individual of the class obk:Person"^^xsd:string ;
opdm:rankingDirection "DESC"^^xsd:string ;
opdm:priority "0"^^xsd:integer ;
] ;
.
obk:format
a owl:ObjectProperty ;
rdfs:subPropertyOf gr:qualitativeProductOrServiceProperty ;
rdfs:isDefinedBy obk: ;
rdfs:domain obk:Book ;
rdfs:range obk:BookFormat ;
rdfs:label "Format of the book"@en ;
opdm:minCardinality "0"^^xsd:string;
opdm:maxCardinality "n"^^xsd:string;
rdfs:comment "Book format"@en ;
opdm:isConfiguredBy [
a opdm:MetadataContainer ;
opdm:inProfile opdm:DefaultProfile ;
opdm:attributePosition "0"^^xsd:integer ;
opdm:exampleOfUsage "The value of this property is an individual of the class obk:BookFormat (i.e. obk:AudioBook, obk:Paperback, etc.);"^^xsd:string ;
opdm:rankingDirection "DESC"^^xsd:string ;
opdm:priority "0"^^xsd:integer ;
] ;
.
obk:genre
a owl:ObjectProperty ;
rdfs:subPropertyOf gr:qualitativeProductOrServiceProperty ;
rdfs:isDefinedBy obk: ;
rdfs:domain obk:Book ;
rdfs:range obk:BookGenre ;
rdfs:label "Genre of the book"@en ;
opdm:minCardinality "0"^^xsd:string;
opdm:maxCardinality "1"^^xsd:string;
rdfs:comment "The genre of a book."@en ;
opdm:isConfiguredBy [
a opdm:MetadataContainer ;
opdm:inProfile opdm:DefaultProfile ;
opdm:attributePosition "0"^^xsd:integer ;
opdm:exampleOfUsage "The value of this property is an individual of the class obk:BookGenre (i.e. obk:Fiction, obk:Drama, etc.);"^^xsd:string ;
opdm:rankingDirection "DESC"^^xsd:string ;
opdm:priority "0"^^xsd:integer ;
] ;
.
obk:narrator
a owl:ObjectProperty ;
rdfs:subPropertyOf gr:qualitativeProductOrServiceProperty ;
rdfs:isDefinedBy obk: ;
rdfs:domain obk:Book ;
rdfs:range obk:Person ;
rdfs:label "Narrator of the book"@en ;
opdm:minCardinality "0"^^xsd:string;
opdm:maxCardinality "1"^^xsd:string;
rdfs:comment "The narrator of a book in audio format"@en ;
opdm:isConfiguredBy [
a opdm:MetadataContainer ;
opdm:inProfile opdm:DefaultProfile ;
opdm:attributePosition "0"^^xsd:integer ;
opdm:exampleOfUsage "The value of this property is an individual of the class obk:Person"^^xsd:string ;
opdm:rankingDirection "DESC"^^xsd:string ;
opdm:priority "0"^^xsd:integer ;
] ;
.
obk:publisher
a owl:ObjectProperty ;
rdfs:subPropertyOf gr:qualitativeProductOrServiceProperty ;
rdfs:isDefinedBy obk: ;
rdfs:domain obk:Book ;
rdfs:range gr:BusinessEntity ;
rdfs:label "Publisher of the book"@en ;
opdm:minCardinality "0"^^xsd:string;
opdm:maxCardinality "1"^^xsd:string;
rdfs:comment "The publisher of the book"@en ;
opdm:isConfiguredBy [
a opdm:MetadataContainer ;
opdm:inProfile opdm:DefaultProfile ;
opdm:attributePosition "0"^^xsd:integer ;
opdm:exampleOfUsage "The value of this property is an individual of the class gr:BusinessEntity"^^xsd:string ;
opdm:rankingDirection "DESC"^^xsd:string ;
opdm:priority "0"^^xsd:integer ;
] ;
.
# (gr:quantitativeProductOrServiceProperty) ----------------------------------
obk:lengthOfAudio
a owl:ObjectProperty ;
rdfs:subPropertyOf gr:quantitativeProductOrServiceProperty ;
rdfs:isDefinedBy obk: ;
rdfs:domain obk:Book ;
rdfs:range gr:QuantitativeValue ;
opdm:recommendedUnitOfMeasure "SEC"^^xsd:string ;
opdm:recommendedRangeOfMeasure [
a gr:QuantitativeValue ;
gr:hasMinValue "1"^^xsd:integer ;
] ;
rdfs:label "Length of audiobook"@en ;
opdm:minCardinality "0"^^xsd:string;
opdm:maxCardinality "1"^^xsd:string;
rdfs:comment "The length in seconds of the audio narration of the book. It applies only to books in audio format. Note: UN/CEFACT code for second is SEC"@en ;
opdm:isConfiguredBy [
a opdm:MetadataContainer ;
opdm:inProfile opdm:DefaultProfile ;
opdm:attributePosition "0"^^xsd:integer ;
opdm:exampleOfUsage "The value of this property is an individual of the class gr:QuantitativeValue"^^xsd:string ;
opdm:rankingDirection "DESC"^^xsd:string ;
opdm:priority "0"^^xsd:integer ;
] ;
.
#-----------------------------------------------------------------------------
# Annotation Properties
#-----------------------------------------------------------------------------
dcterms:creator
a owl:AnnotationProperty .
dcterms:contributor
a owl:AnnotationProperty .
dcterms:subject
a owl:AnnotationProperty .
foaf:depiction
a owl:AnnotationProperty .
foaf:Person
a owl:Class .
skos:altLabel
a owl:AnnotationProperty .
#-----------------------------------------------------------------------------
#前缀
#-----------------------------------------------------------------------------
@前缀dbpedia owl:。
@前缀dcterms:。
@前缀foaf:。
@前缀gr:。
@前缀owl:。
@前缀pto:。
@前缀rdf:。
@前缀rdfs:。
@前缀skos:。
@前缀xsd:。
@前缀opdm:。
@前缀oggl:。
#本词汇的前缀:obk
#-项目“OPDM”第一个字母中的“o”
#-“bk”作为主要产品类型“Book”的前两个辅音
#(从UNIX命令中借用的标准)。
@前缀obk:。
#-----------------------------------------------------------------------------
#本体论
#-----------------------------------------------------------------------------
obk:
猫头鹰:本体论;
猫头鹰:进口,
opdm:;
rdfs:标签为“书籍词汇表”@en;
rdfs:评论“描述书籍的词汇”。@en;
dcterms:主题“书、有声书、电子书、阅读”@en;
dcterms:创造者“Bene Rodriguez Castro”,
“Laszlo Torok”,
“马丁·赫普”,
,
;
.
#-----------------------------------------------------------------------------
#班级
#-----------------------------------------------------------------------------
#产品类型类别-------------------------------------------------------
obk:书
猫头鹰:类;
rdfs:gr子类:产品或服务;
rdfs:由obk:定义;
rdfs:标签为“Book”@en;
foaf:描述;
opdm:oggl类:媒体书籍;
rdfs:评论“所有书籍的超级类”@en。
#实用程序类------------------------------------------------------------
书籍格式
猫头鹰:类;
rdfs:gr子类:定性价值;
rdfs:由obk:定义;
rdfs:标签“BookFormat”@en;
rdfs:comment“书的格式”@en。
电子格式
猫头鹰:类;
rdfs:obk子类:书籍格式;
rdfs:由obk:定义;
rdfs:标签“ElectronicFormat”@en;
rdfs:注释“电子(非打印)格式”@en。
obk:纸质格式
猫头鹰:类;
rdfs:obk子类:书籍格式;
rdfs:由obk:定义;
rdfs:label“PaperFormat”@en;
rdfs:comment“Paper format”@en。
obk:人
猫头鹰:类;
rdfs:gr子类:定性价值,
foaf:个人;
rdfs:由obk:定义;
rdfs:标签“Person”@en;
rdfs:注释“作为作者、叙述者(有声读物)或任何其他功能与本书相关的人”@en。
#研究文学体裁的规范分类法。
#总是有维基百科/数据库百科。
#来自维基百科图书条目信息框:史诗、抒情、戏剧、浪漫、,
#讽刺、悲剧、喜剧、悲喜剧
obk:书籍体裁
猫头鹰:类;
rdfs:gr子类:定性价值;
rdfs:由obk:定义;
rdfs:标签“BookGenre”@en;
rdfs:评论“文学体裁的词汇最好来源于既定的体裁文学分类法,但同时也是开放的。”@en。
#-----------------------------------------------------------------------------
#个人
#-----------------------------------------------------------------------------
#(obk:BookFormat)-----------------------------------------------------------
obk:精装
a obk:纸质格式;
rdfs:由obk:定义;
rdfs:标签为“精装本”@en;
rdfs:评论“精装版的书”@en。
obk:平装本
a obk:纸质格式;
rdfs:由obk:定义;
rdfs:标签为“平装本”@en;
rdfs:注释“一本书的平装版”@en。
有声读物
obk:电子格式;
rdfs:由obk:定义;
rdfs:标签为“有声读物”@en;
rdfs:评论“一本书的音频格式版本”@en。
电子书
obk:电子格式;
rdfs:由obk:定义;
rdfs:标签为“电子书”@en;
rdfs:评论“一本书的电子版”@en。
#(obk:图书类型)------------------------------------------------------------
obk:史诗
书体;
rdfs:由obk:定义;
rdfs:标签为“Epic”@en;
评论“史诗文学体裁”@en。
歌词
书体;
rdfs:由obk:定义;
rdfs:标签为“抒情”@en;
评论“抒情文学体裁”@en。
obk:戏剧
书体;
rdfs:由obk:定义;
rdfs:标签为“戏剧”@en;
评论“戏剧文学流派”@en。
obk:小说
书体;
rdfs:由obk:定义;
rdfs:标签为“虚构”@en;
评论“小说文学流派”@en。
# ... 其他流派
obk:GenreN
书体;
rdfs:由obk:定义;
rdfs:标签“类型N”@en;
rdfs:comment“不可使用。体裁N代表可定义的开放式体裁类型的概念”@en。
#-----------------------------------------------------------------------------
#数据类型属性
#-----------------------------------------------------------------------------
#(gr:datatypeProductOrServiceProperty)--------------------------------------
obk:摘要
owl:DatatypeProperty;
rdfs:gr的子属性:datatypeProductOrServiceProperty;
rdfs:由obk:定义;
rdfs:域obk:Book;
rdfs:range xsd:string;
rdfs:标签“抽象”@en;
opdm:minCardinality“0”^^xsd:string;
opdm:maxCardinality“1”^^xsd:string;
rdfs:评论“书的摘要”@en;
opdm:isConfiguredBy[
opdm:元数据容器;
opdm:inProfile opdm:DefaultProfile;
opdm:attributePosition“0”^^xsd:integer;
opdm:exampleousage“此属性的值是文本描述(xsd:string)。”^^xsd:string;
opdm:rankingDirection“DESC”^^xsd:string;
opdm:优先级“0”^^xsd:整数;
] ;
.
obk:页数
猫头鹰:爸爸
#-----------------------------------------------------------------------------
# Populating the Book Product Type Ontology
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Prefixes
#-----------------------------------------------------------------------------
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix gr: <http://purl.org/goodrelations/v1#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix pto: <http://www.productontology.org/id/> .
@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 xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix opdm: <http://purl.org/opdm/utility#> .
@prefix oggl: <http://purl.org/opdm/category/google#> .
@prefix obk: <http://purl.org/opdm/book#> .
# Prefix of this example:
@prefix obkex: <http://purl.org/opdm/book/example#> .
#-----------------------------------------------------------------------------
# Example 1.
# Book: The Help
# Format: Paper
# Alternative Formats: E-book, Audiobook
# Source: http://www.amazon.com/Help-Movie-Tie--Kathryn-Stockett/dp/0425245136/ref=zg_bs_books_2
#-----------------------------------------------------------------------------
# Represent the Author
obkex:KathrynStockettPerson
a obk:Person ;
foaf:name "Kathryn Stockett"@en ;
foaf:givenName "Kathryn"@en ;
foaf:familyName "Stockett"@en ;
gr:name "Kathryn Stockett"@en ;
gr:description "The author Kathryn Stockett"@en .
# Represent the Publisher
obkex:BerkleyTradePublisher
a gr:BusinessEntity ;
gr:legalName "Berkley Trade" ;
gr:name "Berkley Trade" ;
gr:description "The publishing company Berkley Trade"@en .
# Represent the Book
obkex:TheHelpBook
a obk:Book ;
opdm:category oggl:Media_Books ;
gr:name "The Help Book"@en ;
gr:description "The Help Book"@en ;
obk:title "The Help"@en ;
obk:author obkex:KathrynStockettPerson ;
obk:format obk:Hardcover,
obk:Paperback,
obk:Audiobook,
obk:Ebook ;
obk:genre obk:Drama,
obk:Fiction ;
obk:numberOfPages "544"^^xsd:integer ;
obk:publisher obkex:BerkleyTradePublisher ;
obk:publishedDate "2011-06-28"^^xsd:date ;
obk:publishedIn "en"^^xsd:language ;
gr:hasEAN_UCC-13 "9780425245132"^^xsd:string ;
gr:weight [
# representation of 9.6 ounces using UN/CEFACT
a gr:QuantitativeValue ;
gr:hasValue "9.6"^^xsd:float ;
gr:hasUnitOfMeasurement "ONZ"^^xsd:string
] ;
gr:height [
# representation of 8.3 inches using UN/CEFACT
a gr:QuantitativeValue ;
gr:hasValue "8.3"^^xsd:float ;
gr:hasUnitOfMeasurement "INH"^^xsd:string
] ;
gr:width [
# representation of 5 inches using UN/CEFACT
a gr:QuantitativeValue ;
gr:hasValue "5"^^xsd:float ;
gr:hasUnitOfMeasurement "INH"^^xsd:string
] ;
gr:depth [
# representation of 0.8 inches using UN/CEFACT
a gr:QuantitativeValue ;
gr:hasValue "0.8"^^xsd:float ;
gr:hasUnitOfMeasurement "INH"^^xsd:string
] .
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Example 2.
# Book: The Shining
# Format: Paper
# Alternative Format: Ebook, Audiobook
# Source: http://search.barnesandnoble.com/Shining/Stephen-King/e/9780385121675
#-----------------------------------------------------------------------------
# Represent the Author
obkex:StephenKingPerson
a obk:Person ;
foaf:name "Stephen King"@en ;
foaf:givenName "Stephen"@en ;
foaf:familyName "King"@en ;
gr:name "Stephen King"@en ;
gr:description "The auhtor Stephen King"@en .
# Represent the Publisher
obkex:KnopfDoubledayPublishingGroup
a gr:BusinessEntity ;
gr:legalName "Knopf Doubleday Publishing Group" ;
gr:name "Knopf Doubleday Publishing Group"@en ;
gr:description "The Knopf Doubleday Publishing Group"@en .
# Represent the Book
obkex:TheShiningBook
a obk:Book ;
opdm:category oggl:Book ;
gr:name "The Shining"@en ;
gr:description "The Shining Book"@en ;
obk:title "The Shining"@en ;
obk:author obkex:StephenKingPerson ;
obk:format obk:Hardcover,
obk:Paperback,
obk:Audiobook,
obk:Ebook ;
obk:genre obk:Drama,
obk:Fiction ;
obk:numberOfPages "464"^^xsd:integer ;
obk:publisher obkex:KnopfDoubledayPublishingGroup ;
obk:publishedDate "2005-08-12"^^xsd:date ;
obk:publishedIn "en"^^xsd:language ;
gr:hasEAN_UCC-13 "9780385121675"^^xsd:string .
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Example 3.
# Book: The Shining
# Format: Audiobook
# Alternative Format: Paper, Ebook
# Source: http://www.audible.com/pd/ref=sr_1_1?asin=B002VA8R8O&qid=1315475776&sr=1-1
#-----------------------------------------------------------------------------
# Represent the Author
obkex:StephenKingPerson
a obk:Person ;
foaf:name "Stephen King"@en ;
foaf:givenName "Stephen"@en ;
foaf:familyName "King"@en ;
gr:name "Stephen King"@en ;
gr:description "The auhtor Stephen King"@en .
# Represent the Narrator
obkex:CampbellScott
a obk:Person ;
foaf:name "Campbell Scott"@en ;
foaf:givenName "Campbell"@en ;
foaf:familyName "Scott"@en ;
gr:name "Campbell Scott"@en ;
gr:description "The book narrator Campbell Scott"@en .
# Represent the Publisher
obkex:SimonAndSchusterAudio
a gr:BusinessEntity ;
gr:legalName "Simon & Schuster Audio"@en ;
gr:name "Simon & Schuster Audio"@en ;
gr:description "The audio book publishing company Simon & Schuster Audio"@en .
# Represent the Book
obkex:TheShiningAudioBook
a obk:Book ;
opdm:category oggl:Book ;
gr:name "The Shining"@en ;
gr:description "The audio book The Shining"@en ;
obk:title "The Shining"@en ;
obk:author obkex:StephenKingPerson ;
obk:narrator obkex:CampbellScott ;
obk:format obk:Audiobook,
obk:Paperback,
obk:Hardcover,
obk:Ebook ;
obk:genre obk:Drama,
obk:Fiction ;
obk:publisher obkex:SimonAndSchusterAudio ;
obk:publishedDate "2005-08-12"^^xsd:date ;
obk:publishedIn "en"^^xsd:language ;
obk:lengthOfAudio [
# representation of 15 hours and 54 minutes in UN/CEFACT seconds
a gr:QuantitativeValue ;
gr:hasValue "57240"^^xsd:integer ;
gr:hasUnitOfMeasurement "SEC"^^xsd:string
] .
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Untyped conceptual elements
#-----------------------------------------------------------------------------
foaf:Person
a owl:Class ;
.
foaf:depiction
a owl:AnnotationProperty ;
.
foaf:familyName
a owl:AnnotationProperty ;
.
foaf:givenName
a owl:AnnotationProperty ;
.
foaf:name
a owl:AnnotationProperty ;
.
@prefix : <http://www.BookSemanticOntology.com/bso#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@base <http://www.BookSemanticOntology.com/bso> .
<http://www.BookSemanticOntology.com/bso> rdf:type owl:Ontology ;
owl:imports <file:/Users/ania/Downloads/laczoka-opdm_ontologies-410158ea3d5c/book_example.n3> ,
<http://purl.org/opdm/book#> .
### Generated by the OWL API (version 4.1.3.20151118-2017) https://github.com/owlcs/owlapi