mintproject / ModelCatalog

A repository containing the resources needed to create a catalog of software model models and link them together
Other
1 stars 3 forks source link

Change script for importing SVOs #2

Closed dgarijo closed 5 years ago

dgarijo commented 5 years ago

After this first iteration, the query sparql.setQuery(""" PREFIX mc: https://w3id.org/mint/modelCatalog#

SELECT distinct ?u where {
    ?a mc:hasStandardVariable ?u.
}
""")

will have to be changed to

sparql.setQuery(""" PREFIX rdfs: http://www.w3.org/2000/01/rdf-schema# PREFIX mc: https://w3id.org/mint/modelCatalog#

SELECT distinct ?u where {
    ?a mc:hasStandardVariable ?unit.
    ?unit rdfs:label ?u.
}
""")

Or just invoke the API

dgarijo commented 5 years ago

Done