Giter VIP home page Giter VIP logo

schema-org-java's People

Contributors

dependabot[bot] avatar kobee1203 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

schema-org-java's Issues

could you make JsonLdTypeName annotation in field level as well?

At the moment this annotation can be used type and annotation_type levels. could you also add the field level for this?
I want to change the name of the property on my use case.

I want to add this property into my dataset
prov:wasDerivedFrom

But in java, we cannot define the variable names using ":" character. So I need to have an annotation to override the variable name.

Thanks

Use with a custom JSON-LD

Hello, I'm interested in generating pojo for a customized schema.org.

It looks like it's not possible with the current version (0.2.2) of your maven plugin.

I'm thinking of something like this:

.
├── pom.xml
└── src
    └── main
        └── resources
            └── custom.jsonld

with this configuration:

    <build>
        <plugins>
            <plugin>
                <groupId>com.weedow</groupId>
                <artifactId>schema-org-generator-maven-plugin</artifactId>
                <version>${schema-org.version}</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                        <configuration>
                            <schemaVersion>classpath:/custom.jsonld</schemaVersion>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

(not sure about re-using schemaVersion though 🤔 )

Are you interested in this functionality ? I think I can contribute it if you want

[generator] Handle Enumeration Member defined for multiple Enumeration types

The following JSO fragment is an enumeration member defined for multiple Enumeration types:

    {
      "@id": "schema:Radiography",
      "@type": [
        "schema:MedicalImagingTechnique",
        "schema:MedicalSpecialty"
      ],
      "rdfs:comment": "Radiography is an imaging technique that uses electromagnetic radiation other than visible light, especially X-rays, to view the internal structure of a non-uniformly composed and opaque object such as the human body.",
      "rdfs:label": "Radiography",
      "schema:isPartOf": {
        "@id": "https://health-lifesci.schema.org"
      }
    },

Radiography must be added to MedicalImagingTechnique and MedicalSpecialty.

Currently EnumerationMemberModelHandlerImpl does not handle this case and Radiography is not added to enumeration types.

want to set array objects

Let's say I want to set multiple objects, for instance, Thing object has a setter for identifier object and I can't add multiple identifier object. It takes just one object, can it take a list of identifier objects? So I will be able to set array objects.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.