mirror of
https://github.com/ISEAL-Community/iseal-core.git
synced 2024-11-21 22:35:01 +01:00
changed namespaces for domain and range
This commit is contained in:
parent
6be2c120c4
commit
f053147361
@ -63,7 +63,7 @@ def make_rdf(file, ns):
|
|||||||
if prop_type == "CONTROLLED VALUE": ## object property
|
if prop_type == "CONTROLLED VALUE": ## object property
|
||||||
g.add((elementURI, SKOS.prefLabel, Literal(element_name)))
|
g.add((elementURI, SKOS.prefLabel, Literal(element_name)))
|
||||||
g.add((elementURI, RDF.type, OWL.ObjectProperty))
|
g.add((elementURI, RDF.type, OWL.ObjectProperty))
|
||||||
g.add((elementURI, OWL.domain, conceptUri))
|
g.add((elementURI, RDFS.domain, conceptUri))
|
||||||
## add suproperty link
|
## add suproperty link
|
||||||
if dc:
|
if dc:
|
||||||
dct = dc.split(":")[1]
|
dct = dc.split(":")[1]
|
||||||
@ -114,7 +114,7 @@ def make_rdf(file, ns):
|
|||||||
g.add((termURI, RDF.type, OWL.Class)) ## SKOS.Concept
|
g.add((termURI, RDF.type, OWL.Class)) ## SKOS.Concept
|
||||||
g.add((termURI, SKOS.prefLabel, Literal(term)))
|
g.add((termURI, SKOS.prefLabel, Literal(term)))
|
||||||
g.add((termURI, RDFS.subClassOf, cvURI)) ## SKOS.member???
|
g.add((termURI, RDFS.subClassOf, cvURI)) ## SKOS.member???
|
||||||
g.add((elementURI, OWL.range, cvURI))
|
g.add((elementURI, RDFS.range, cvURI))
|
||||||
|
|
||||||
## add the controlled vocab information on properties directly
|
## add the controlled vocab information on properties directly
|
||||||
g.add(
|
g.add(
|
||||||
@ -150,7 +150,7 @@ def make_rdf(file, ns):
|
|||||||
else: ## datatype properties
|
else: ## datatype properties
|
||||||
g.add((elementURI, SKOS.prefLabel, Literal(element_name)))
|
g.add((elementURI, SKOS.prefLabel, Literal(element_name)))
|
||||||
g.add((elementURI, RDF.type, OWL.DatatypeProperty))
|
g.add((elementURI, RDF.type, OWL.DatatypeProperty))
|
||||||
g.add((elementURI, OWL.domain, conceptUri))
|
g.add((elementURI, RDFS.domain, conceptUri))
|
||||||
if dc:
|
if dc:
|
||||||
dct = dc.split(":")[1]
|
dct = dc.split(":")[1]
|
||||||
if "||" in dct:
|
if "||" in dct:
|
||||||
@ -181,13 +181,13 @@ def make_rdf(file, ns):
|
|||||||
)
|
)
|
||||||
range = None
|
range = None
|
||||||
if prop_type == "DATE":
|
if prop_type == "DATE":
|
||||||
g.add((elementURI, OWL.range, XSD.date))
|
g.add((elementURI, RDFS.range, XSD.date))
|
||||||
range = XSD.date
|
range = XSD.date
|
||||||
elif prop_type == "NUMERIC VALUE":
|
elif prop_type == "NUMERIC VALUE":
|
||||||
g.add((elementURI, OWL.range, XSD.float))
|
g.add((elementURI, RDFS.range, XSD.float))
|
||||||
range = XSD.float
|
range = XSD.float
|
||||||
else:
|
else:
|
||||||
g.add((elementURI, OWL.range, XSD.string))
|
g.add((elementURI, RDFS.range, XSD.string))
|
||||||
range = XSD.string
|
range = XSD.string
|
||||||
##cardinality
|
##cardinality
|
||||||
if cardinality == "REPEAT VALUES":
|
if cardinality == "REPEAT VALUES":
|
||||||
|
Loading…
Reference in New Issue
Block a user