OWL Ontology for Book Inventory

An ontology that extends the existent bibliontology, in order to be used on cataloging the books in a library.

I also made a demo rdf database to test this ontology.

w3c Logo

Used technologies:

  • OWL (Web Ontology Language)

  • XML/RDF

  • Protege

SparQL Query to get all books in a Series, in their chronological order
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX bib: <http://iurianu.rocks/ontology/bib.owl#>
PREFIX lib: <http://iurianu.rocks/ontology/lib.owl#>

SELECT ?author ?title ?language
	FROM <http://iurianu.rocks/ontology/lib.owl#>
	WHERE { 
		 ?subject bib:is_part_of lib:Dosarele_Cronos ;
		 bib:number_in_series ?order ;
		 bib:author ?author ;
		 bib:title ?title ;
		 bib:language ?language .

		 FILTER lang(?title='ro'"))
	}

ORDER BY ASC(?order))
SparQL Query to get all books that are part of some series
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX bib: <http://iurianu.rocks/ontology/bib.owl#>
PREFIX lib: <http://iurianu.rocks/ontology/lib.owl#>

SELECT ?author ?series ?book
	FROM <http://iurianu.rocks/ontology/lib.owl#>
	WHERE { 
		 ?book bib:is_part_of ?series ;
		 bib:number_in_series ?order ;
		 bib:author ?author .
	}

GROUP BY ?series ?order ?book ?author
OWL Ontology for Book Inventory