Skip to content

Add editorial improvements to CSS ontology generation #367

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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`)
}