Anonymous

Main Page: Difference between revisions

From LexBib
no edit summary
No edit summary
No edit summary
Line 15: Line 15:
== LexBib ontology ==
== LexBib ontology ==
LexBib items are instances of ontology classes, linked to each other and to literal values, using a set of properties.
LexBib items are instances of ontology classes, linked to each other and to literal values, using a set of properties.
* Properties: wikidata equivalent, range: [https://lexbib.elex.is/query/#PREFIX%20rdf%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0APREFIX%20wdno%3A%20%3Chttp%3A%2F%2Fwww.wikidata.org%2Fprop%2Fnovalue%2F%3E%0APREFIX%20lno%3A%20%3Chttp%3A%2F%2Flexbib.elex.is%2Fprop%2Fnovalue%2F%3E%0APREFIX%20lwb%3A%20%3Chttp%3A%2F%2Flexbib.elex.is%2Fentity%2F%3E%0APREFIX%20ldp%3A%20%3Chttp%3A%2F%2Flexbib.elex.is%2Fprop%2Fdirect%2F%3E%0APREFIX%20lp%3A%20%3Chttp%3A%2F%2Flexbib.elex.is%2Fprop%2F%3E%0APREFIX%20lps%3A%20%3Chttp%3A%2F%2Flexbib.elex.is%2Fprop%2Fstatement%2F%3E%0APREFIX%20lpq%3A%20%3Chttp%3A%2F%2Flexbib.elex.is%2Fprop%2Fqualifier%2F%3E%0APREFIX%20lpr%3A%20%3Chttp%3A%2F%2Flexbib.elex.is%2Fprop%2Freference%2F%3E%0A%0Aselect%20%3Forder%20%3Flexbib_prop%20%3FpropLabel%20%3Fdatatype%20%28uri%28concat%28%22http%3A%2F%2Fwww.wikidata.org%2Fentity%2F%22%2C%3Fwikidata_prop%29%29%20as%20%3Fwikidata%29%0A%20%20%20%20%20%20%20%3Fproperty_range%0Awhere%20%7B%0A%20%20%3Flexbib_prop%20rdf%3Atype%20%3Chttp%3A%2F%2Fwikiba.se%2Fontology%23Property%3E%20%3B%0A%20%20%20%20%20%20%20%20%20%3Chttp%3A%2F%2Fwikiba.se%2Fontology%23propertyType%3E%20%3Fdatatype%20%3B%0A%20%20%20%20%20%20%20%20%20rdfs%3Alabel%20%3FpropLabel%20.%20filter%20%28lang%28%3FpropLabel%29%3D%22en%22%29%0A%20%20OPTIONAL%20%7B%3Flexbib_prop%20ldp%3AP2%20%3Fwikidata_prop.%7D%0A%20%20OPTIONAL%20%7B%3Flexbib_prop%20ldp%3AP48%20%3Fproperty_range.%7D%0A%20%20BIND%20%28xsd%3Ainteger%28REPLACE%28str%28%3Flexbib_prop%29%2C%20%22http%3A%2F%2Flexbib.elex.is%2Fentity%2FP%22%2C%20%22%22%29%29%20as%20%3Forder%20%29%0A%7D%20group%20by%20%3Forder%20%3Flexbib_prop%20%3FpropLabel%20%3Fdatatype%20%3Fwikidata_prop%20%3Fproperty_range%20order%20by%20%3Forder Query].
* All properties: wikidata equivalent, range: [https://lexbib.elex.is/query/#PREFIX%20rdf%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0APREFIX%20wdno%3A%20%3Chttp%3A%2F%2Fwww.wikidata.org%2Fprop%2Fnovalue%2F%3E%0APREFIX%20lno%3A%20%3Chttp%3A%2F%2Flexbib.elex.is%2Fprop%2Fnovalue%2F%3E%0APREFIX%20lwb%3A%20%3Chttp%3A%2F%2Flexbib.elex.is%2Fentity%2F%3E%0APREFIX%20ldp%3A%20%3Chttp%3A%2F%2Flexbib.elex.is%2Fprop%2Fdirect%2F%3E%0APREFIX%20lp%3A%20%3Chttp%3A%2F%2Flexbib.elex.is%2Fprop%2F%3E%0APREFIX%20lps%3A%20%3Chttp%3A%2F%2Flexbib.elex.is%2Fprop%2Fstatement%2F%3E%0APREFIX%20lpq%3A%20%3Chttp%3A%2F%2Flexbib.elex.is%2Fprop%2Fqualifier%2F%3E%0APREFIX%20lpr%3A%20%3Chttp%3A%2F%2Flexbib.elex.is%2Fprop%2Freference%2F%3E%0A%0Aselect%20%3Forder%20%3Flexbib_prop%20%3FpropLabel%20%3Fdatatype%20%28uri%28concat%28%22http%3A%2F%2Fwww.wikidata.org%2Fentity%2F%22%2C%3Fwikidata_prop%29%29%20as%20%3Fwikidata%29%0A%20%20%20%20%20%20%20%3Fproperty_range%0Awhere%20%7B%0A%20%20%3Flexbib_prop%20rdf%3Atype%20%3Chttp%3A%2F%2Fwikiba.se%2Fontology%23Property%3E%20%3B%0A%20%20%20%20%20%20%20%20%20%3Chttp%3A%2F%2Fwikiba.se%2Fontology%23propertyType%3E%20%3Fdatatype%20%3B%0A%20%20%20%20%20%20%20%20%20rdfs%3Alabel%20%3FpropLabel%20.%20filter%20%28lang%28%3FpropLabel%29%3D%22en%22%29%0A%20%20OPTIONAL%20%7B%3Flexbib_prop%20ldp%3AP2%20%3Fwikidata_prop.%7D%0A%20%20OPTIONAL%20%7B%3Flexbib_prop%20ldp%3AP48%20%3Fproperty_range.%7D%0A%20%20BIND%20%28xsd%3Ainteger%28REPLACE%28str%28%3Flexbib_prop%29%2C%20%22http%3A%2F%2Flexbib.elex.is%2Fentity%2FP%22%2C%20%22%22%29%29%20as%20%3Forder%20%29%0A%7D%20group%20by%20%3Forder%20%3Flexbib_prop%20%3FpropLabel%20%3Fdatatype%20%3Fwikidata_prop%20%3Fproperty_range%20order%20by%20%3Forder Query].
* Properties, alignment with wikidata and other vocabularies: [https://lexbib.elex.is/query/#PREFIX%20wdt%3A%20%3Chttp%3A%2F%2Fwww.wikidata.org%2Fprop%2Fdirect%2F%3E%0APREFIX%20ldp%3A%20%3Chttp%3A%2F%2Flexbib.elex.is%2Fprop%2Fdirect%2F%3E%0A%0Aselect%20%3Forder%20%3Flexbib_prop%20%3FpropLabel%20%3Fdatatype%20%3Fwikidata%0A%20%20%20%20%20%20%20%3Fequivalent%0Awhere%20%7B%0A%20%20%3Flexbib_prop%20rdf%3Atype%20%3Chttp%3A%2F%2Fwikiba.se%2Fontology%23Property%3E%20%3B%0A%20%20%20%20%20%20%20%20%20%3Chttp%3A%2F%2Fwikiba.se%2Fontology%23propertyType%3E%20%3Fdatatype%20%3B%0A%20%20%20%20%20%20%20%20%20rdfs%3Alabel%20%3FpropLabel%20.%20filter%20%28lang%28%3FpropLabel%29%3D%22en%22%29%0A%20%20%3Flexbib_prop%20ldp%3AP2%20%3Fwikidata_prop.%0A%20%20BIND%20%28uri%28concat%28%22http%3A%2F%2Fwww.wikidata.org%2Fentity%2F%22%2C%3Fwikidata_prop%29%29%20as%20%3Fwikidata%29%0A%20%20BIND%20%28xsd%3Ainteger%28REPLACE%28str%28%3Flexbib_prop%29%2C%20%22http%3A%2F%2Flexbib.elex.is%2Fentity%2FP%22%2C%20%22%22%29%29%20as%20%3Forder%20%29%0A%20%20SERVICE%20%3Chttps%3A%2F%2Fquery.wikidata.org%2Fsparql%3E%20%7B%0A%20%20%20%20select%20%3Fwikidata%20%3Fequivalent%0AWHERE%20%7B%20%3Fwikidata%20wdt%3AP1628%20%3Fequivalent%20.%7D%7D%0A%20%20%0A%7D%20group%20by%20%3Forder%20%3Flexbib_prop%20%3FpropLabel%20%3Fdatatype%20%3Fwikidata%20%3Fequivalent%20order%20by%20%3Forder%0A%0A%23%20Note%3A%20this%20query%20may%20take%20time%20to%20execute%2C%20because%20of%20the%20nested%20query%20to%20wikidata. Query].
* Classes: [https://lexbib.elex.is/query/#PREFIX%20lwb%3A%20%3Chttp%3A%2F%2Flexbib.elex.is%2Fentity%2F%3E%0APREFIX%20ldp%3A%20%3Chttp%3A%2F%2Flexbib.elex.is%2Fprop%2Fdirect%2F%3E%0A%0Aselect%20%3Furi%20%3FclassLabel%20%28uri%28concat%28%22http%3A%2F%2Fwww.wikidata.org%2Fentity%2F%22%2C%3Fwd%29%29%20as%20%3Fwikidata%29%20where%20%0A%7B%20%3Furi%20ldp%3AP5%20lwb%3AQ2%3B%20%23%20Q2%3A%20a%20LexBib%20Ontology%20Class%0A%20%20%20%20%20%20%20rdfs%3Alabel%20%3FclassLabel.%0A%20filter%28lang%28%3FclassLabel%29%3D%22en%22%29%0A%20OPTIONAL%20%7B%20%3Furi%20ldp%3AP2%20%3Fwd%20.%20%7D%0A%20BIND%20%28xsd%3Ainteger%28REPLACE%28str%28%3Furi%29%2C%20%22http%3A%2F%2Flexbib.elex.is%2Fentity%2FQ%22%2C%20%22%22%29%29%20as%20%3Forder%20%29%0A%7D%20order%20by%20%3Forder%0A Query].
* Classes: [https://lexbib.elex.is/query/#PREFIX%20lwb%3A%20%3Chttp%3A%2F%2Flexbib.elex.is%2Fentity%2F%3E%0APREFIX%20ldp%3A%20%3Chttp%3A%2F%2Flexbib.elex.is%2Fprop%2Fdirect%2F%3E%0A%0Aselect%20%3Furi%20%3FclassLabel%20%28uri%28concat%28%22http%3A%2F%2Fwww.wikidata.org%2Fentity%2F%22%2C%3Fwd%29%29%20as%20%3Fwikidata%29%20where%20%0A%7B%20%3Furi%20ldp%3AP5%20lwb%3AQ2%3B%20%23%20Q2%3A%20a%20LexBib%20Ontology%20Class%0A%20%20%20%20%20%20%20rdfs%3Alabel%20%3FclassLabel.%0A%20filter%28lang%28%3FclassLabel%29%3D%22en%22%29%0A%20OPTIONAL%20%7B%20%3Furi%20ldp%3AP2%20%3Fwd%20.%20%7D%0A%20BIND%20%28xsd%3Ainteger%28REPLACE%28str%28%3Furi%29%2C%20%22http%3A%2F%2Flexbib.elex.is%2Fentity%2FQ%22%2C%20%22%22%29%29%20as%20%3Forder%20%29%0A%7D%20order%20by%20%3Forder%0A Query].