Skip to content

Commit

Permalink
clean(core): Move ThingMediaTypes into the .io sub-package
Browse files Browse the repository at this point in the history
  • Loading branch information
vorburger committed Jun 23, 2024
1 parent bd97411 commit 8ff8f3f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/dev/implementation.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ Any [Protocol Buffer](https://protobuf.dev) can be [converted](#conversions) to

#### Proto Thing YAML

* Media Type: `text/enola.dev#thing+yaml` (from `dev.enola.thing.ThingMediaTypes`)
* Media Type: `text/enola.dev#thing+yaml` (from `dev.enola.thing.io.ThingMediaTypes`)
* Filename extension: `.thing.yaml`
* Example: [picasso.thing.yaml](//test/picasso.thing.yaml)

#### Proto Thing Text

* Media Type: `text/protobuf?proto-message=dev.enola.thing.Thing` (from `dev.enola.thing.ThingMediaTypes`)
* Media Type: `text/protobuf?proto-message=dev.enola.thing.Thing` (from `dev.enola.thing.io.ThingMediaTypes`)
* Filename extension: `.textproto`

### Conversions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import dev.enola.common.io.resource.convert.CatchingResourceConverter;
import dev.enola.common.protobuf.ProtoIO;
import dev.enola.rdf.RdfResourceIntoProtoThingConverter;
import dev.enola.thing.ThingMediaTypes;
import dev.enola.thing.io.ThingMediaTypes;

public class ResourceIntoThingResourceConverter implements CatchingResourceConverter {

Expand Down
2 changes: 1 addition & 1 deletion java/dev/enola/core/rosetta/RosettaTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import dev.enola.common.io.resource.MemoryResource;
import dev.enola.common.io.resource.StringResource;
import dev.enola.rdf.RdfMediaTypes;
import dev.enola.thing.ThingMediaTypes;
import dev.enola.thing.io.ThingMediaTypes;

import org.junit.Test;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dev.enola.thing;
package dev.enola.thing.io;

import static java.util.Collections.emptySet;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dev.enola.thing;
package dev.enola.thing.io;

import static com.google.common.truth.Truth.assertThat;

Expand Down

0 comments on commit 8ff8f3f

Please sign in to comment.