-
Create a vocabulary RDF file.
A vocabulary declared in RDF/XML format contains three sections: the prolog, the
content header, and the content itself. For more information, see Installation and Setup | 3DEXPERIENCE Platform | 3DEXPERIENCE Platform Administration | 3DSpace | Enterprise Control Center | Enterprise Control Center | Managing Vocabulary Files | RDF/OWL Modeling | Vocabulary Definition and Syntax | Vocabulary File Structure.
-
In the vocabulary header, create a new name space under your custom domain and add a
base tag referencing it.
Here is a sample of a possible vocabulary header compatible with classification
apps:
<rdf:RDF
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:ds6w="http://www.3ds.com/vocabularies/ds6w#"
xmlns:customPrefix="http://myCustomDomain/vocabularies/customPrefix/"
xml:base="http://myCustomDomain/vocabularies/customPrefix/">
Where the name customPrefix can be modified to fulfill your needs.
-
In the vocabulary content (
<rdf:RDF> tag), you can introduce a new
ontology using the rdf:about tag. It should reference the base tag you
have declared in the header section. You can add a label in different languages and
comments. To make the ontology description visible in the 6WTagger, use the
owl:imports rdf:resource=”ds6w” tag, and to specify the version
compatibility, use the owl:versionInfo tag.
Here is a sample of a possible vocabulary content for ontology creation:
<owl:Ontology rdf:about="http://myCustomDomain/vocabularies/customPrefix/">
<rdfs:label xml:lang="en">Step by Step Vocabulary Sample</rdfs:label>
<rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Classification vocabularies</rdfs:comment>
<owl:imports rdf:resource="ds6w"/>
<owl:versionInfo>R2021x</owl:versionInfo>
</owl:Ontology>
Where the name customPrefix is the one you have defined in the header
section. Now you can add all the new predicates you want to create.
-
Each predicate is defined as a
owl:DatatypeProperty. You can add a
label, comment it in different languages, and associate it with a 6WTagger. It is
important to choose its type among the attribute types string, boolean, integer, double,
and dateTime.
Here is a sample of possible vocabulary content for a new predicate:
<owl:DatatypeProperty rdf:about="predicateName">
<rdfs:label xml:lang="en">Predicate Name</rdfs:label>
<rdfs:label xml:lang="fr">Nom du Predicat</rdfs:label>
<rdfs:subPropertyOf rdf:resource="&ds6w;what"/>
<rdfs:range rdf:resource="&xsd;string"/>
<rdfs:comment xml:lang="en">English version of comments</rdfs:comment>
<rdfs:comment xml:lang="fr">Version francaise des commentaires</rdfs:comment>
</owl:DatatypeProperty>
Note:
customPrefix:predicateName couple is the one assigned to the
classification attribute during its creation.
-
Now open the Vocabularies tab in the Platform Management dashboard and import the RDF file you have created.
Result: Once the RDF file is imported to 3DEXPERIENCE Platform,
the predicates are ready to be assigned to classification attributes.
Recommendation:
Assign only one classification attribute to one predicate. Do not use
the existing predicates that are defined by default. You can create as many predicates in
the RDF custom file as you intend to create classification attributes.