peterjohnlawrence / com.inova8.odata2sparql.v4

Part of the overall odata2sparql solution, this odata2sparql.v4 module containing the olingo4 dependencies. In other words specifically for odata v4
http://inova8.com/bg_inova8.com/offerings/odata2sparql/
Apache License 2.0
5 stars 5 forks source link

mincardinality on objectproperty does not seems to produce results #159

Open peterjohnlawrence opened 5 years ago

peterjohnlawrence commented 5 years ago

The metamodel created seems correct. The navigation property should be a collection but not nukllable. However no results are rendered even though the sparl query produces the correct results.

Workaround is not to specify minimum cardinality on objectproperty that is a collection

rdf:Fact rdf:type owl:Class ; rdfs:label "Fact" ; rdfs:subClassOf owl:Thing ; rdfs:subClassOf [ rdf:type owl:Restriction ; owl:cardinality "1"^^xsd:nonNegativeInteger ; owl:onProperty rdf:hasPredicate ; ] ; rdfs:subClassOf [ rdf:type owl:Restriction ; owl:minCardinality "1"^^xsd:nonNegativeInteger ; owl:onProperty rdf:hasValues ; ] ; .

hasPredicate owl~Thing