Skip to content

Commit

Permalink
Add editorial improvements to CSS ontology generation
Browse files Browse the repository at this point in the history
Implements suggestions in #327
  • Loading branch information
tidoust committed Sep 23, 2021
1 parent 22f67b1 commit 2778371
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/css-json-to-ttl.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ console.log(`@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix css: <http://www.w3.org/ns/css#> .
<> rdfs:comment """This ontology allows CSS properties to be expressed in RDF.
The same camelcase convention is usede as is used by the subproperties of the
The same camelcase convention is used as is used by the subproperties of the
style property in browser JS implementations.
""" .
`)
for (const prop in cssData.properties) {
const camel = camelCasify(prop)
const camel = cssData.properties[prop].styleDeclaration.pop()
// console.log(` Property ${prop} - ${camel}`)
console.log(`css:${camel} a rdf:Property; rdfs:label "${prop}"; spec:values`)
}

0 comments on commit 2778371

Please sign in to comment.